/* Marist JPIC Blog — recreates the 2018-2026 look on Joomla 5 Cassiopeia.
   Colours sampled from the archived site (14 May 2026). Kept in user.css so Joomla updates don't overwrite it. */

@import url("https://fonts.googleapis.com/css2?family=Artifika&display=swap");

:root {
  --jpic-blue: #01408f;      /* header */
  --jpic-sky: #93bdef;       /* page background */
  --jpic-bar: #2675d4;       /* blog toolbar */
  --jpic-text: #333333;
  --jpic-muted: #5c6670;     /* darker than the old #777 so meta text passes contrast */
  --cassiopeia-color-primary: var(--jpic-blue);
  --cassiopeia-color-link: #0a58b8;
  --cassiopeia-color-hover: #01306b;
  --link-color: #0a58b8;
}

body.site {
  background: var(--jpic-sky);
  color: var(--jpic-text);
}

/* ---------- Header: blue band, shield logo, serif title, slogan ---------- */
.container-header {
  background: var(--jpic-blue);
  background-image: none;
  box-shadow: none;
}
.container-header .grid-child.container-nav { display: none; } /* Cassiopeia's empty nav row */
.container-header .navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 0 1.5rem;
}
.container-header .brand-logo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #fff;
  text-decoration: none;
  font-family: "Artifika", "Times New Roman", serif;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.15;
}
.container-header .brand-logo::before {
  content: "";
  flex: 0 0 auto;
  width: 82px;
  height: 55px;
  background: url("../images/jpic-logo.jpg") center / contain no-repeat;
}
.container-header .brand-logo:hover,
.container-header .brand-logo:focus { color: #fff; text-decoration: underline; }
.container-header .site-description {
  color: #fff;
  font-size: 1.05rem;
  margin: .5rem 0 0;
  opacity: 1;
}

@media (max-width: 767.98px) {
  .container-header .navbar-brand { align-items: center; text-align: center; }
  .container-header .brand-logo { flex-direction: column; gap: .75rem; }
  .container-header .site-description { text-align: center; }
}

/* ---------- Main column sits on the light-blue page ---------- */
.site-grid { background: transparent; }
.container-component { background: transparent; }
.container-component > * { max-width: 1140px; }

/* EasyBlog toolbar in the old blue */
#eb .eb-toolbar,
#eb .eb-toolbar__item--home,
.eb-toolbar { background-color: var(--jpic-bar) !important; border-color: var(--jpic-bar) !important; }
#eb .eb-toolbar a, #eb .eb-toolbar .eb-toolbar__link { color: #fff !important; }

/* Post cards: white panels on the blue page, as before */
#eb .eb-post,
#eb .eb-entry,
#eb .eb-posts .eb-post {
  background: #fff;
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
#eb .eb-post-title a, #eb .eb-entry-title { color: #2b3338; }
#eb .eb-post-meta, #eb .eb-post-meta a { color: var(--jpic-muted); }

/* Footer */
.container-footer { background: var(--jpic-blue); color: #fff; }
.container-footer a { color: #fff; }

/* Keyboard focus stays visible on the blue */
a:focus-visible, button:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }

/* Pictures never spill outside the white card */
#eb .eb-post, #eb .eb-entry { overflow: hidden; }
#eb img, #eb .eb-image, #eb .eb-image-figure, #eb .eb-post-image, #eb .eb-image-viewport { max-width: 100% !important; height: auto; }
