/* Masonic Institute of Greece: Cassiopeia Extended overrides (Nov 2026) */

/* ---------- Fonts (self-hosted, Greek + Latin) ---------- */
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/ubuntu-greek-300-normal.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/ubuntu-latin-300-normal.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: "Ubuntu"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/ubuntu-greek-300-italic.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Ubuntu"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/ubuntu-latin-300-italic.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: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ubuntu-greek-400-normal.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ubuntu-latin-400-normal.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: "Ubuntu"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ubuntu-greek-700-normal.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ubuntu-latin-700-normal.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: "Roboto Slab"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-slab-greek-500-normal.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-slab-latin-500-normal.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: "Roboto Slab"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-slab-greek-700-normal.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-slab-latin-700-normal.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; }

/* ---------- Brand tokens ---------- */
:root {
  --mi-copper: #b87333;
  --mi-copper-dark: #8f5523;   /* links & buttons on white: ~6:1 contrast */
  --mi-gold: #ba8e22;
  --mi-dark: #2a2b2c;
  --mi-dark-2: #1f2021;
  --mi-text: #333333;
  --mi-muted: #6b6b6b;
  --mi-light: #f6f3ef;
  --cassiopeia-font-family-body: "Ubuntu", Calibri, "DejaVu Sans", sans-serif;
  --cassiopeia-font-family-headings: "Roboto Slab", "DejaVu Serif", Georgia, serif;
  --cassiopeia-font-weight-normal: 300;
  --cassiopeia-font-weight-headings: 500;
}

body { font-weight: 300; color: var(--mi-text); }
strong, b { font-weight: 700; }
h1, h2, h3, h4, .h1, .h2, .h3 { font-family: var(--cassiopeia-font-family-headings); font-weight: 500; color: var(--mi-dark); }
a { color: var(--mi-copper-dark); text-underline-offset: .15em; }
a:hover, a:focus { color: var(--mi-copper); }

/* ---------- Header ---------- */
.container-header { background: var(--mi-dark); background-image: none; border-bottom: 3px solid var(--mi-copper); }
.container-header .navbar-brand img { max-height: 64px; width: auto; }
.container-header .site-description { color: #d8d2c8; }
.container-header .container-nav { align-items: center; }
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span { color: #fff; font-size: 1.05rem; font-weight: 400; letter-spacing: .02em; }
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus,
.container-header .mod-menu > li.active > a { color: var(--mi-copper); text-decoration: none; }
.container-header .mod-menu > li.active > a { box-shadow: inset 0 -2px 0 var(--mi-copper); }
.container-header .navbar-toggler { color: #fff; border-color: rgba(255,255,255,.5); }

/* Language switcher (EL / EN) */
.mod-languages ul.lang-inline { margin: 0; }
.mod-languages a, .mod-languages .lang-active a { color: #fff; font-weight: 400; padding: .1rem .45rem; border-radius: 3px; text-decoration: none; }
.mod-languages .lang-active a { background: var(--mi-copper); }
.container-header .mod-languages { margin-inline-start: 1rem; }

/* ---------- Slider (banner position) ---------- */
.mi-slider { position: relative; height: clamp(320px, 62vh, 640px); overflow: hidden; background: var(--mi-dark-2); }
.mi-slides { position: absolute; inset: 0; }
.mi-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.mi-slide.is-active { opacity: 1; z-index: 1; }
.mi-slide-img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 7s ease-out; }
.mi-slide.is-active .mi-slide-img { transform: scale(1); }
.mi-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.78) 0%, rgba(20,20,20,.35) 55%, rgba(20,20,20,.1) 100%); }
.mi-slide-caption { position: absolute; z-index: 2; left: max(1.25rem, calc((100vw - 1320px) / 2 + 1.25rem)); right: 1.25rem; bottom: 18%; color: #fff; }
.mi-slide-title { font-family: var(--cassiopeia-font-family-headings); font-weight: 700; text-transform: uppercase; color: #fff; font-size: clamp(2.6rem, 9vw, 6rem); line-height: 1; margin: 0 0 .4rem; letter-spacing: .01em; }
.mi-slide-text { font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.75rem); color: #fff; border-left: 4px solid var(--mi-copper); padding-left: .75rem; }
.mi-slide-text p { margin: 0; }
.mi-slider-dots { position: absolute; z-index: 3; bottom: 1.25rem; left: 0; right: 0; display: flex; justify-content: center; gap: .6rem; }
.mi-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.mi-dot.is-active, .mi-dot:hover { background: var(--mi-copper); border-color: var(--mi-copper); }
.mi-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .mi-slide, .mi-slide-img { transition: none; }
}

/* ---------- Home sections ---------- */
.mi-section { padding: 2.5rem 0; }
.mi-section > h2, .mi-section .mi-section-title, .card-header.mi-section-title { text-align: center; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.mi-section .card, .card.mi-plain { border: 0; background: transparent; box-shadow: none; }
.mi-intro { text-align: center; max-width: 860px; margin-inline: auto; font-size: 1.1rem; line-height: 1.75; }
.mi-two-col { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .mi-two-col { grid-template-columns: 1fr 1fr; } }
.mi-two-col h2, .mi-two-col h3 { font-size: 1.9rem; position: relative; padding-bottom: .5rem; margin-bottom: 1rem; }
.mi-two-col h2::after, .mi-two-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--mi-copper); }

/* Cassiopeia card chrome: make module headings look like section titles */
.container-top-a .card-header, .container-main .main-top .card-header, .container-bottom-a .card-header, .container-bottom-b .card-header, .main-bottom .card-header {
  background: transparent; border: 0; text-align: center; font-family: var(--cassiopeia-font-family-headings); font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.8rem); color: var(--mi-dark); padding-bottom: .25rem;
}
.container-top-a .card-header::after, .container-bottom-a .card-header::after, .container-bottom-b .card-header::after, .main-top .card-header::after, .main-bottom .card-header::after {
  content: ""; display: block; width: 64px; height: 3px; margin: .6rem auto 0; background: var(--mi-copper);
}
.container-top-a .card, .container-bottom-a .card, .container-bottom-b .card, .main-top .card, .main-bottom .card { border: 0; box-shadow: none; background: transparent; }

/* ---------- Gallery (articles module, layout "gallery") ---------- */
.mi-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mi-gallery-item { margin: 0; position: relative; overflow: hidden; border-radius: 4px; background: var(--mi-dark); }
.mi-gallery-thumb { display: block; aspect-ratio: 4 / 3; }
.mi-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, opacity .4s ease; }
.mi-gallery-thumb:hover img, .mi-gallery-thumb:focus img { transform: scale(1.05); opacity: .85; }
.mi-gallery-caption { padding: .6rem .75rem .8rem; color: #fff; font-size: .98rem; line-height: 1.35; }
.mi-gallery-caption a { color: #fff; text-decoration: none; }
.mi-gallery-caption a:hover, .mi-gallery-caption a:focus { color: var(--mi-copper); text-decoration: underline; }

/* ---------- Lightbox ---------- */
dialog.mi-lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
dialog.mi-lb::backdrop { background: rgba(10,10,10,.9); }
.mi-lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.mi-lb-figure img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #111; }
.mi-lb-caption { color: #f2eee8; margin-top: .75rem; max-width: 80ch; text-align: center; font-size: 1rem; line-height: 1.5; }
.mi-lb-caption strong { display: block; font-family: var(--cassiopeia-font-family-headings); font-weight: 500; font-size: 1.2rem; color: #fff; }
.mi-lb-caption a { color: var(--mi-copper); }
.mi-lb-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.mi-lb-btn:hover, .mi-lb-btn:focus-visible { background: var(--mi-copper); outline: none; }
.mi-lb-prev { left: 1rem; } .mi-lb-next { right: 1rem; }
.mi-lb-close { position: fixed; top: 1rem; right: 1rem; transform: none; }
.mi-lb-count { position: fixed; top: 1.4rem; left: 1.25rem; color: #ccc; font-size: .9rem; }

/* ---------- Latest news (articles module) ---------- */
.mi-news .mod-articles-items { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); list-style: none; padding: 0; }
.mi-news .mod-articles-item { height: 100%; border-top: 3px solid var(--mi-copper); background: var(--mi-light); padding: 1.25rem; }
.mi-news .mod-articles-title { font-size: 1.25rem; margin-bottom: .5rem; }
.mi-news .mod-articles-title a { color: var(--mi-dark); text-decoration: none; }
.mi-news .mod-articles-title a:hover { color: var(--mi-copper-dark); }

/* ---------- Buttons ---------- */
.btn-primary, .readmore .btn { background: var(--mi-copper-dark); border-color: var(--mi-copper-dark); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .readmore .btn:hover { background: var(--mi-dark); border-color: var(--mi-dark); color: #fff; }

/* ---------- Breadcrumbs ---------- */
.container-component .mod-breadcrumbs, .mod-breadcrumbs__wrapper { font-size: .9rem; }

/* ---------- Footer ---------- */
.container-footer { background: var(--mi-dark); background-image: none; color: #d6d1c9; border-top: 3px solid var(--mi-copper); }
.container-footer a { color: #e0b98f; }
.container-footer a:hover, .container-footer a:focus { color: #fff; }
.container-footer .grid-child { gap: 2rem; flex-wrap: wrap; }
.mi-footer-note { max-width: 70ch; font-size: .95rem; line-height: 1.6; }
.mi-footer-logo img { max-height: 70px; width: auto; }
.mi-copyright { font-size: .85rem; color: #a9a39a; }

/* ---------- Map embed ---------- */
.mi-map { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 420px; border-radius: 4px; overflow: hidden; }
.mi-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Round 2 (2 Nov 2026) ---------- */
/* Header: logo left, menu + languages right, one row on desktop */
@media (min-width: 992px) {
  .container-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-inline: max(1rem, calc((100vw - 1320px) / 2)); }
  .container-header > .grid-child { margin: 0; padding-block: .6rem; max-width: none; }
  .container-header > .grid-child:first-child { flex: 0 0 auto; }
  .container-header .container-nav { flex: 1 1 auto; justify-content: flex-end; gap: 1rem; }
  .container-header .container-nav > nav, .container-header .container-nav > div { margin: 0; }
  .container-header .navbar-brand img { max-height: 56px; }
}
/* Cards in top-b: same flat look as the other home sections */
.container-top-b .card { border: 0; box-shadow: none; background: transparent; }
.container-top-b .card-header { background: transparent; border: 0; font-family: var(--cassiopeia-font-family-headings); font-weight: 500; font-size: 1.9rem; color: var(--mi-dark); position: relative; padding-bottom: .5rem; }
.container-top-b .card-header::after { content: ""; position: absolute; left: 1rem; bottom: 0; width: 56px; height: 3px; background: var(--mi-copper); }
.mi-aims .mod-articles-title { font-size: 1.9rem; position: relative; padding-bottom: .5rem; margin-bottom: 1rem; }
.mi-aims .mod-articles-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--mi-copper); }
.mi-aims .mod-articles-items { list-style: none; padding: 0; margin: 0; }
.container-top-b > .moduletable, .container-top-b > .card { flex: 1 1 420px; }
/* Gallery: 3 x 3 on desktop */
@media (min-width: 576px) { .mi-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .mi-gallery { grid-template-columns: repeat(3, 1fr); } }
/* Lightbox: darker backdrop */
dialog.mi-lb::backdrop { background: rgba(8,8,8,.94); }
/* Hide the empty article area on the home pages (content lives in modules) */
body.home .container-component:not(:has(.alert)) .com-content-article:has(.com-content-article__body:empty) { display: none; }
@media (min-width: 992px) {
  .container-header > .grid-child { width: auto; }
  .container-header > .grid-child.container-nav { flex: 1 1 auto; display: flex; align-items: center; }
}

/* ---------- Round 3: inner pages (2 Nov 2026) ---------- */
/* Page headings with a copper underline */
.com-content-article .page-header h1, .com-content-article .page-header h2, .com-content-category-blog .page-header h1, .com-contact > h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem); margin: .5rem 0 1.5rem; padding-bottom: .6rem; position: relative;
}
.com-content-article .page-header h1::after, .com-content-article .page-header h2::after, .com-content-category-blog .page-header h1::after, .com-contact > h1::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; background: var(--mi-copper);
}

/* Article page: readable width, image beside the text */
.view-article .com-content-article, .com-content-category-blog, .com-contact { max-width: 1060px; margin-inline: auto; }
.com-content-article__body { font-size: 1.06rem; line-height: 1.8; }
.com-content-article__body p { margin-bottom: 1.1rem; }
.com-content-article__body img { max-width: 100%; height: auto; }
/* old editor left fixed font sizes in the text; let the template decide */
.com-content-article__body [style*="font-size"], .mod-articles-item [style*="font-size"], .card-body [style*="font-size"] { font-size: inherit !important; }
.com-content-article .item-image { float: right; width: min(40%, 380px); margin: .3rem 0 1.25rem 2rem; }
.com-content-article .item-image img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.com-content-article .item-image figcaption { font-size: .9rem; color: var(--mi-muted); margin-top: .4rem; }
@media (max-width: 767.98px) {
  .com-content-article .item-image { float: none; width: auto; max-width: 380px; margin: 0 auto 1.5rem; }
}
.com-content-article .article-info { color: var(--mi-muted); font-size: .92rem; margin-bottom: 1rem; }

/* Article links (e.g. the free PDF) as buttons */
.com-content-article__links { margin: 0 0 1.5rem; }
.com-content-article__links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.com-content-article__links a { display: inline-flex; align-items: center; gap: .55rem; background: var(--mi-copper-dark); color: #fff; padding: .7rem 1.2rem; border-radius: 4px; text-decoration: none; font-weight: 400; }
.com-content-article__links a::before { content: "\f019"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.com-content-article__links a:hover, .com-content-article__links a:focus { background: var(--mi-dark); color: #fff; }

/* News list (category blog override: blog_item.php) */
.com-content-category-blog .blog-items { display: block; }
.com-content-category-blog .blog-item { margin-bottom: 1.5rem; }
.mi-news-card { display: grid; grid-template-columns: 1fr; gap: 1.25rem 1.75rem; padding: 1.4rem; background: var(--mi-light); border-top: 3px solid var(--mi-copper); }
@media (min-width: 768px) { .mi-news-card.has-image { grid-template-columns: 190px 1fr; } }
.mi-news-card__image img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 4px 16px rgba(0,0,0,.16); }
@media (max-width: 767.98px) { .mi-news-card__image img { max-width: 200px; } }
.mi-news-card__title { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0 0 .35rem; }
.mi-news-card__title a { color: var(--mi-dark); text-decoration: none; }
.mi-news-card__title a:hover, .mi-news-card__title a:focus { color: var(--mi-copper-dark); text-decoration: underline; }
.mi-news-card__date { color: var(--mi-muted); font-size: .92rem; margin-bottom: .7rem; }
.mi-news-card__excerpt { line-height: 1.7; margin-bottom: 1rem; }
.mi-news-card .icons { float: right; }
.com-content-category-blog__navigation { margin-top: 1rem; }

/* Contact page: details + map on the left, form on the right */
.com-contact > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.com-contact__container h2 { font-size: 1.5rem; }
.com-contact__address dt { font-weight: 700; }
.com-contact__form legend { font-family: var(--cassiopeia-font-family-headings); font-weight: 500; font-size: 1.5rem; color: var(--mi-dark); }
.com-contact__form .well { background: var(--mi-light); border: 0; border-top: 3px solid var(--mi-copper); padding: 1.5rem; }
.mi-map-link { font-size: .9rem; margin-top: .5rem; }
@media (min-width: 992px) {
  .com-contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem 3rem; align-items: start; }
  .com-contact > h1, .com-contact > .icons { grid-column: 1 / -1; }
  .com-contact > .com-contact__container { grid-column: 1; grid-row: 3; }
  .com-contact > .com-contact__form { grid-column: 2; grid-row: 3 / span 3; }
  .com-contact > div:has(.mi-map) { grid-column: 1; grid-row: 4; }
}

/* Article reached from the news list: hide the repeated "Νέα" page heading, keep the article title */
.view-article .com-content-article > .page-header:has(+ .page-header) { display: none; }
.article-info .article-info-term { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Round 4: long texts, covers, contact, notes, footer (2 Nov 2026) ---------- */
/* Article pages: comfortable line length for long texts */
.view-article .com-content-article { max-width: 900px; }
/* user.js hides the old editor's empty spacer paragraphs and marks bold-only paragraphs as sub-headings */
.com-content-article__body .mi-empty { display: none; }
.com-content-article__body .mi-subhead { display: flow-root; margin: 2.4rem 0 .6rem; padding-top: 1.4rem; border-top: 1px solid rgba(143,85,35,.25); font-family: var(--cassiopeia-font-family-headings); font-size: 1.18rem; line-height: 1.45; color: var(--mi-copper-dark); }
.com-content-article__body .mi-subhead strong, .com-content-article__body .mi-subhead b { font-weight: 500; }
.com-content-article__body > .mi-subhead:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Modules under the article (book covers, notes): same width as the text, flat section look */
.container-component > .card.main-bottom { max-width: 900px; width: 100%; margin: 2.5rem auto 0; border: 0; background: transparent; }
.view-contact .container-component > .card.main-bottom { max-width: 1060px; }
.container-component > .card.main-bottom .card-header { background: transparent; border: 0; padding: 0 0 .5rem; margin-bottom: 1.25rem; position: relative; font-family: var(--cassiopeia-font-family-headings); font-weight: 500; font-size: 1.6rem; color: var(--mi-dark); }
.container-component > .card.main-bottom .card-header::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--mi-copper); }
.container-component > .card.main-bottom .card-body { padding: 0; }

/* Bibliography: book covers (Random Image module, layout "covers") */
.mi-gallery.mi-covers { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 1.1rem; }
.mi-covers .mi-gallery-item { background: transparent; overflow: visible; border-radius: 2px; }
.mi-covers .mi-gallery-thumb { aspect-ratio: 2 / 3; overflow: hidden; border-radius: 2px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); }

/* Contact details: icon column + text column, full width */
.com-contact__info, .com-contact .dl-horizontal { width: 100%; }
.com-contact__info { font-size: 1.06rem; line-height: 1.6; }
.com-contact .dl-horizontal { display: grid; grid-template-columns: 1.5rem 1fr; gap: .25rem .75rem; margin: 0; }
.com-contact .dl-horizontal dt { grid-column: 1; float: none; width: auto; margin: 0; padding-top: .1rem; text-align: left; }
.com-contact .dl-horizontal dd { grid-column: 2; float: none; width: auto; margin: 0; }
.com-contact__miscinfo .dl-horizontal { display: block; }
.com-contact__miscinfo dt { display: none; }
.com-contact__miscinfo { margin-top: 1.5rem; }

/* "Follow us on Facebook" note (contact pages) */
.mi-note { border-left: 3px solid var(--mi-copper); background: var(--mi-light); padding: 1.1rem 1.4rem; font-size: .98rem; line-height: 1.65; }
.mi-note p { margin: 0 0 .4rem; }
.mi-note p:last-child { margin: 0; }
.mi-note__title { font-family: var(--cassiopeia-font-family-headings); font-weight: 500; font-size: 1.1rem; }

/* Footer: logo, contact, social, copyright */
.container-footer .grid-child { display: block; padding-block: 2.5rem 1.5rem; }
.mi-footer { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .mi-footer { grid-template-columns: 1.4fr 1fr 1fr; } }
.mi-footer__brand img { display: block; width: 220px; max-width: 100%; height: auto; }
.mi-footer p { margin: 0 0 .5rem; line-height: 1.6; }
.mi-footer .mi-footer__label { margin-bottom: .6rem; font-family: var(--cassiopeia-font-family-headings); font-weight: 500; font-size: 1.05rem; color: #fff; }
.container-footer .mi-copyright { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); text-align: center; }
/* Round 4b */
.com-contact__container { display: block; }
.container-component > .card.main-bottom .card-header { text-align: left; }
.com-content-article__body h2 { font-size: 1.55rem; margin: 2.6rem 0 .4rem; }
.com-content-article__body h2 + .mi-subhead { margin-top: .9rem; padding-top: 0; border-top: 0; }

/* ---------- Round 5: mobile (2 Nov 2026) ---------- */
.container-top-b .card-body h4 { font-size: 1.3rem; font-weight: 500; line-height: 1.4; }
@media (max-width: 991.98px) {
  .container-header > .grid-child { padding-block: .4rem; }
  .container-header .navbar-brand { margin: 0; }
  .container-header .navbar-brand img { max-height: 46px; width: auto; }
  .container-header .container-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 0 .4rem; }
}
@media (max-width: 767.98px) {
  .mi-news-card.has-image { grid-template-columns: 96px 1fr; gap: .9rem 1rem; padding: 1rem; }
  .mi-news-card__image img { max-width: none; }
  .mi-news-card__title { font-size: 1.15rem; }
  .mi-news-card__excerpt { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .com-content-article .item-image { max-width: 240px; }
  .container-footer .grid-child { padding-inline: 1rem; }
  .container-top-b .card-body h4 { font-size: 1.15rem; }
}

/* ---------- Round 6: header search + search results (2 Nov 2026) ---------- */
.container-search { margin: 0; }
.container-search .js-finder-search-query { width: 190px; height: 38px; padding: .35rem .75rem .35rem 2.1rem; border-radius: 4px; font-size: .95rem; color: #fff; background-color: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6d1c9' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: .65rem center; background-size: 15px; }
.container-search .js-finder-search-query::placeholder { color: rgba(255,255,255,.65); }
.container-search .js-finder-search-query:focus { color: #fff; background-color: rgba(255,255,255,.14); border-color: var(--mi-copper); box-shadow: 0 0 0 .15rem rgba(184,115,51,.35); outline: 0; }
.container-search .awesomplete > ul { color: var(--mi-dark); z-index: 1050; }
@media (max-width: 991.98px) {
  .container-search { width: 100%; padding-bottom: .5rem; }
  .container-search .js-finder-search-query { width: 100%; }
}
/* Search results page */
.com-finder { max-width: 900px; margin-inline: auto; }
.com-finder h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: .5rem 0 1.5rem; padding-bottom: .6rem; position: relative; }
.com-finder h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; background: var(--mi-copper); }
.com-finder__results-list { list-style: none; padding: 0; }
.com-finder__results-list > li { padding: 1.1rem 0; border-bottom: 1px solid #e6dfd6; }
.com-finder__results-list .result__title { font-size: 1.25rem; margin-bottom: .35rem; }
.com-finder__results-list .result__title a { color: var(--mi-dark); text-decoration: none; }
.com-finder__results-list .result__title a:hover, .com-finder__results-list .result__title a:focus { color: var(--mi-copper-dark); text-decoration: underline; }
.com-finder__results-list mark { background: rgba(184,115,51,.18); color: inherit; padding: 0 .1em; }

/* ---------- Round 7: language switcher (2 Nov 2026) ---------- */
.container-header .mod-languages { margin-inline: .5rem .75rem; }
.container-header .mod-languages__list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.container-header .mod-languages__list li { display: flex; align-items: center; margin: 0; }
.container-header .mod-languages__list li + li::before { content: ""; width: 1px; height: 14px; background: rgba(255,255,255,.3); }
.container-header .mod-languages__list a { display: block; padding: .3rem .6rem .25rem; font-size: .82rem; font-weight: 500; letter-spacing: .1em; line-height: 1.2; color: rgba(255,255,255,.6); background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; text-decoration: none; }
.container-header .mod-languages__list a:hover, .container-header .mod-languages__list a:focus-visible { color: #fff; background: none; }
.container-header .mod-languages__list .lang-active a { color: #fff; background: none; border-bottom-color: var(--mi-copper); }
.container-header div.mod-languages ul li, .container-header div.mod-languages ul li.lang-active { background: none; padding: 0; margin: 0; border: 0; }
@media (max-width: 991.98px) { .container-search form, .container-search .awesomplete { width: 100%; } }
