/* ================================================================
   Borrowdale Creative — Joomla 6 Cassiopeia child template
   Stage 2C header and typography v1.7 | 25 October 2026

   Install as:
   httpdocs/2026Site/media/templates/site/
   cassiopeia_borrowdalecreative/css/user.css

   Important: Cassiopeia owns menu layout, collapse and hamburger.
   No navbar display/visibility/flex, collapse, or toggler rules here.
   ================================================================ */

:root {
  /* Brand palette */
  --bc-navy: #17384c;
  --bc-navy-deep: #102c3e;
  --bc-teal: #176e75;
  --bc-teal-dark: #11575e;
  --bc-gold: #bf8d4c;
  --bc-paper: #faf9f5;
  --bc-white: #ffffff;
  --bc-ink: #253746;
  --bc-muted: #526574;
  --bc-line: #e0e6e7;
  --bc-shadow: 0 12px 36px rgb(16 44 62 / 8%);
  --bc-radius: 18px;

  /* Cassiopeia's supported colour variables */
  --cassiopeia-color-primary: #176e75;
  --cassiopeia-color-link: #11575e;
  --cassiopeia-color-hover: #17384c;
}

/* Site-wide background and typography */
html { scroll-behavior: smooth; }
body.site, body {
  background: var(--bc-paper);
  color: var(--bc-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.68;
}

h1, h2, .h1, .h2 {
  color: var(--bc-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.17;
}
h3, h4, h5, h6, .h3, .h4, .h5, .h6 {
  color: var(--bc-navy);
  font-family: inherit;
  font-weight: 650;
  line-height: 1.32;
}
h1, .h1 { font-size: clamp(2.15rem, 4.5vw, 3.7rem); }
h2, .h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
h3, .h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin-bottom: 1.15rem; }
small, .small { color: var(--bc-muted); }

/* Distinctive brand header. Leave Cassiopeia's responsive menu alone. */
.container-header {
  background-color: var(--bc-navy);
  background-image: linear-gradient(110deg, #17384c 0%, #14545e 100%);
  border-bottom: 3px solid var(--bc-gold);
  box-shadow: 0 3px 20px rgb(16 44 62 / 13%);
}
.container-header .site-description,
.container-header .navbar-brand,
.container-header .site-title {
  color: var(--bc-white);
}

/* Main content; preserve Joomla's responsive structural site-grid */
.container-component {
  padding-top: clamp(1.6rem, 3vw, 3rem);
  padding-bottom: clamp(2.2rem, 4vw, 4rem);
}
/* Full-width article body for homepage, product galleries and landing pages.
   Readable line lengths can be opted into with .bc-reading-width later. */
.com-content-article__body { width: 100%; max-width: none; }
.bc-reading-width { max-width: 78ch; }
.container-component a:not(.btn),
main a:not(.btn) {
  color: var(--bc-teal-dark);
  text-underline-offset: .17em;
}
.container-component a:not(.btn):hover,
main a:not(.btn):hover { color: var(--bc-navy); }
:focus-visible { outline: 3px solid var(--bc-gold); outline-offset: 3px; }

/* Buttons - never target the Cassiopeia hamburger/toggler */
.btn.btn-primary,
.btn.btn-info,
.bc-button {
  background-color: var(--bc-teal);
  border: 1px solid var(--bc-teal);
  border-radius: 999px;
  color: var(--bc-white);
  font-weight: 650;
  line-height: 1.2;
  padding: .8rem 1.35rem;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}
.bc-button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn.btn-primary:hover,
.btn.btn-info:hover,
.bc-button:hover,
.btn.btn-primary:focus-visible,
.btn.btn-info:focus-visible {
  background-color: var(--bc-teal-dark);
  border-color: var(--bc-teal-dark);
  color: var(--bc-white);
}
.bc-button:hover { transform: translateY(-1px); }
.btn.btn-outline-primary,
.bc-button--outline {
  background: transparent;
  border: 1px solid var(--bc-teal);
  border-radius: 999px;
  color: var(--bc-teal-dark);
  font-weight: 650;
  padding: .8rem 1.35rem;
  text-decoration: none;
}
.btn.btn-outline-primary:hover,
.bc-button--outline:hover {
  background: var(--bc-teal);
  border-color: var(--bc-teal);
  color: var(--bc-white);
}

/* Existing Joomla category and article cards */
.blog-items .blog-item,
.card {
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
}
.blog-items .blog-item {
  background: var(--bc-white);
  box-shadow: var(--bc-shadow);
  padding: clamp(1rem, 2vw, 1.7rem);
}

/* Future homepage hero, product grids and app/store listings */
.bc-section { padding-block: clamp(2.5rem, 5vw, 5rem); }
.bc-section--white { background: var(--bc-white); }
.bc-kicker {
  color: var(--bc-teal-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.bc-lead {
  color: var(--bc-muted);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.65;
  max-width: 65ch;
}
.bc-hero {
  background: linear-gradient(125deg, #e9f1ef 0%, #f6f5ee 58%, #fdfaf4 100%);
  border: 1px solid var(--bc-line);
  border-radius: 24px;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
}
.bc-hero h1 { max-width: 14ch; }
.bc-hero .bc-lead { max-width: 55ch; }
.bc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.bc-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bc-card {
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  overflow: hidden;
}
.bc-card__image {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}
.bc-card__content { padding: clamp(1.2rem, 2vw, 1.8rem); }
.bc-card__content h3 { margin-bottom: .65rem; }
.bc-card__content p { color: var(--bc-muted); }
.bc-pill {
  background: #e7f1ef;
  border-radius: 99px;
  color: var(--bc-teal-dark);
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  padding: .28rem .7rem;
}
.bc-platform-links { display: flex; flex-wrap: wrap; gap: .65rem; }
.bc-platform-links a { text-decoration: none; }

/* Forms */
.form-control, .form-select {
  border-color: #b7c6c9;
  border-radius: 10px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--bc-teal);
  box-shadow: 0 0 0 .2rem rgb(23 110 117 / 15%);
}

/* Footer */
.container-footer {
  background-color: var(--bc-navy-deep);
  background-image: none;
  color: #f2f6f7;
  border-top: 3px solid var(--bc-gold);
}
.container-footer a { color: #d6eff0; }
.container-footer a:hover { color: var(--bc-white); }

/* Responsive rules are only for our own content, not Joomla navigation */
@media (max-width: 991.98px) {
  .bc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  body { font-size: 1rem; }
  .bc-grid, .bc-grid--two { grid-template-columns: 1fr; }
  .bc-hero { border-radius: 18px; }
  .container-component { padding-top: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn.btn-primary, .btn.btn-info, .bc-button { transition: none; }
  .bc-button:hover { transform: none; }
}


/* ==================================================================
   Borrowdale Creative — Stage 2B homepage enhancements (v1.6)
   These rules target .bc-home only and do not change Joomla's menu.
   ================================================================== */
.bc-home { width: 100%; margin: 0 auto; }
.bc-home *, .bc-home *::before, .bc-home *::after { box-sizing: border-box; }
.bc-home section { scroll-margin-top: 1.5rem; }
.bc-home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(430px, 36vw, 530px);
  overflow: hidden;
  border-radius: 22px;
  background: #dbeaf0;
  box-shadow: var(--bc-shadow);
}
.bc-home-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.bc-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgb(250 249 245 / 96%) 0%,
    rgb(250 249 245 / 89%) 28%,
    rgb(250 249 245 / 55%) 52%,
    rgb(250 249 245 / 5%) 78%);
}
.bc-home-hero__content { width: min(840px, 80%); padding: clamp(2rem, 3.6vw, 3.4rem); }
.bc-home-eyebrow {
  color: var(--bc-teal-dark);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.45;
  margin-bottom: .8rem;
  text-transform: uppercase;
}
.bc-home-hero h1 { font-size: clamp(2.35rem, 3.25vw, 3.65rem); line-height: 1.12; letter-spacing: -.025em; max-width: none; margin: 0 0 .95rem; }
.bc-home-hero__lead { color: var(--bc-navy-deep); font-size: clamp(1.08rem, 1.45vw, 1.3rem); font-weight: 550; line-height: 1.5; max-width: 41rem; }
.bc-home-hero__intro { color: var(--bc-ink); font-size: .97rem; max-width: 41rem; }
.bc-home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.bc-home a.bc-home-btn, .bc-home a.bc-home-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .8rem 1.3rem;
  border: 1px solid var(--bc-teal);
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.bc-home a.bc-home-btn--primary, .bc-home a.bc-home-btn--primary:visited {
  background: var(--bc-teal);
  color: #fff;
}
.bc-home a.bc-home-btn--primary:hover { background: var(--bc-teal-dark); border-color: var(--bc-teal-dark); color: #fff; }
.bc-home a.bc-home-btn--outline, .bc-home a.bc-home-btn--outline:visited { background: rgb(250 249 245 / 82%); color: var(--bc-teal-dark); }
.bc-home a.bc-home-btn--outline:hover { background: #fff; color: var(--bc-navy-deep); }
.bc-home-section { padding-block: clamp(3.5rem, 5.5vw, 5.75rem); }
.bc-home-section__head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.7rem; }
.bc-home-section__head h2, .bc-home-projects h2, .bc-home-values h2 { margin: 0 0 .8rem; font-size: clamp(1.8rem, 3.2vw, 3rem); }
.bc-home-section__lead { max-width: 60ch; color: var(--bc-muted); margin: 0; }
.bc-home-card-grid, .bc-home-book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.bc-home-feature-card { background: #fff; border: 1px solid var(--bc-line); border-radius: 20px; overflow: hidden; box-shadow: var(--bc-shadow); }
.bc-home-feature-card__visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; min-height: 235px; text-align: center; padding: 1.5rem; }
.bc-home-feature-card--asthmetry .bc-home-feature-card__visual { background: radial-gradient(circle at 75% 20%, #c1e8e9 0, transparent 38%), linear-gradient(135deg,#cceef2,#eaf9f9 75%); }
.bc-home-feature-card--skimpoint .bc-home-feature-card__visual { background: radial-gradient(circle at 70% 38%, #145e70 0, transparent 39%), linear-gradient(135deg,#0b2135,#174258 72%,#122b38); color: #fff; }
.bc-home-feature-card__visual-label { font-size: clamp(1.5rem,3.4vw,2.5rem); font-weight: 800; letter-spacing: .055em; }
.bc-home-feature-card__placeholder { font-size: .8rem; opacity: .75; border: 1px dashed currentColor; border-radius: 12px; padding: .6rem 1rem; }
.bc-home-feature-card__body { padding: clamp(1.5rem, 2.3vw, 2rem); }
.bc-home-feature-card__body h3 { font-size: clamp(1.55rem,2.2vw,2rem); margin-bottom: .65rem; }
.bc-home-feature-card__body p { margin-bottom: .9rem; }
.bc-home-chip { color: var(--bc-teal-dark); font-size: .73rem; font-weight: 800; letter-spacing: .13em; }
.bc-home-small { color: var(--bc-muted); font-size: .8rem; line-height: 1.6; }
.bc-home a.bc-home-text-link, .bc-home a.bc-home-text-link:visited { display: inline-flex; gap: .45rem; align-items: center; font-weight: 750; color: var(--bc-teal-dark); text-decoration: none; border-bottom: 2px solid currentColor; }
.bc-home a.bc-home-text-link:hover { color: var(--bc-navy-deep); }
.bc-home-projects { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); background: #e9f2f2; border-radius: 22px; padding: clamp(2rem, 4vw, 3.5rem); }
.bc-home-projects__copy p:not(.bc-home-eyebrow) { max-width: 55ch; }
.bc-home-projects__gallery { min-height: 255px; border: 1px solid #c9dddd; background: linear-gradient(140deg, #fff, #d3e5e8); border-radius: 18px; display: grid; place-items: center; padding: 1rem; }
.bc-home-projects__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; text-align: center; min-height: 215px; width: 100%; border: 2px dashed #89b3b7; border-radius: 12px; color: var(--bc-navy); }
.bc-home-projects__screenline { height: 28px; width: 70px; border: 3px solid currentColor; border-radius: 5px; opacity: .55; }
.bc-home-projects__placeholder small { font-size: .85rem; }
.bc-home-book-card { display: grid; grid-template-columns: 36% 1fr; gap: clamp(1rem, 2vw, 1.7rem); align-items: center; background: #fff; border: 1px solid var(--bc-line); border-radius: 18px; padding: clamp(1rem, 2vw, 1.6rem); }
.bc-home-book-card__cover { display: grid; place-items: center; min-height: 215px; aspect-ratio: 2/3; padding: 1rem; color: #fff; background: linear-gradient(145deg, #153f5b, #6d98b6); border-radius: 5px 11px 11px 5px; box-shadow: 7px 9px 17px rgb(16 44 62 / 15%); font-size: .83rem; text-align: center; }
.bc-home-book-card__cover--soft { background: linear-gradient(145deg, #b0bfcd, #738ab2, #d8c4ac); color: #102c3e; }
.bc-home-book-card h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem,2vw,1.65rem); margin-bottom: .7rem; }
.bc-home-book-card p { color: var(--bc-muted); margin-bottom: 0; font-size: .95rem; }
.bc-home-values { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; margin: 0 0 2rem; padding: clamp(2rem, 4vw, 3rem); color: #fff; background: linear-gradient(105deg,#17384c,#14545e); border-radius: 22px; }
.bc-home-values__symbol { font-size: 3.6rem; color: #d0e8e4; line-height: 1; }
.bc-home-values .bc-home-eyebrow, .bc-home-values h2, .bc-home-values p { color: #fff; }
.bc-home-values p { max-width: 70ch; }
.bc-home-values a.bc-home-text-link { color: #d8eff0; }
.bc-home-values a.bc-home-text-link:hover { color: #fff; }
@media (max-width: 850px) {
  .bc-home-hero__content { width: 86%; }
  .bc-home-card-grid, .bc-home-book-grid { grid-template-columns: 1fr; }
  .bc-home-projects { grid-template-columns: 1fr; }
  .bc-home-feature-card__visual { min-height: 205px; }
}
@media (max-width: 600px) {
  .bc-home-hero { min-height: 490px; border-radius: 16px; align-items: flex-start; }
  .bc-home-hero::before { background: linear-gradient(180deg, rgb(250 249 245 / 97%) 0%, rgb(250 249 245 / 87%) 58%, rgb(250 249 245 / 24%) 100%); }
  .bc-home-hero__content { width: 100%; padding: 1.75rem 1.3rem; }
  .bc-home-hero h1 { font-size: clamp(2rem, 7.4vw, 2.85rem); line-height: 1.12; }
  .bc-home-actions { align-items: stretch; }
  .bc-home-section__head { display: block; }
  .bc-home-section__head > a { margin-top: 1rem; }
  .bc-home-book-card { grid-template-columns: 32% 1fr; }
  .bc-home-book-card__cover { min-height: 155px; }
  .bc-home-values { grid-template-columns: 1fr; gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-home a.bc-home-btn { transition: none; }
}


/* ======================================================================
   Stage 2C v1.7 — compact brand header + typographic identity
   COMPLETE child-template stylesheet, based on the VERIFIED v1.6 design.

   Safety: Joomla / Cassiopeia still controls navigation collapse,
   menu toggler and mobile dropdown interactions. Nothing here changes
   .navbar, .navbar-toggler, .collapse or .mod-menu display/visibility.
   ====================================================================== */
:root {
  --bc-font-display: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --bc-font-body: Roboto, "Segoe UI", Arial, sans-serif;
}

/* Fonts: Roboto is loaded by Joomla's built-in 'Roboto (local)' scheme.
   Without that setting, Segoe UI / Arial provide reliable fallbacks. */
body.site, body {
  font-family: var(--bc-font-body);
  font-size: 1.035rem;
  line-height: 1.67;
}
h1, h2, h3, .h1, .h2, .h3,
.bc-home-book-card h3,
.bc-home-feature-card__body h3 {
  font-family: var(--bc-font-display);
  font-weight: 600;
  letter-spacing: -.025em;
}
h1, .h1 { line-height: 1.13; }
h2, .h2 { line-height: 1.18; }
.bc-home-hero h1 { font-family: var(--bc-font-display); letter-spacing: -.03em; }
.bc-home-feature-card__visual-label,
.bc-home-eyebrow, .bc-home-chip,
button, input, select, textarea { font-family: var(--bc-font-body); }

/* Header brand wordmark OR Joomla logo image — original artwork unchanged. */
.container-header .navbar-brand {
  font-family: var(--bc-font-display);
  font-size: clamp(1.38rem, 1.65vw, 1.82rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.container-header .navbar-brand a,
.container-header .navbar-brand a:visited {
  color: var(--bc-white);
  text-decoration: none;
}
.container-header .navbar-brand a:hover { color: #f1f5f3; }
.container-header .navbar-brand img {
  display: block;
  width: auto;
  min-width: 0;
  height: auto;
  max-height: 64px;
  max-width: min(270px, 75vw);
  object-fit: contain;
}
.container-header .site-description {
  font-size: .75rem;
  line-height: 1.35;
  letter-spacing: .025em;
}

/* Preserve native responsive menu on widths under 1280px.
   On wide desktop screens, Cassiopeia's existing brand and navigation
   containers share a compact horizontal row. This does NOT change the
   menu layout or hamburger logic inside the navigation container. */
@media (min-width: 1280px) {
  .container-header:has(.navbar-brand):has(.container-nav) {
    display: grid;
    grid-template-columns: minmax(195px, 270px) minmax(0, 1fr);
    grid-template-areas: "bc-brand bc-navigation";
    align-items: center;
    column-gap: clamp(1.1rem, 2vw, 2rem);
    padding: .35rem max(1.5rem, calc((100vw - 1580px) / 2));
  }
  .container-header > .grid-child:has(.navbar-brand) {
    grid-area: bc-brand;
    align-self: center;
    min-width: 0;
    padding-block: .3rem;
  }
  .container-header > .container-nav {
    grid-area: bc-navigation;
    align-self: center;
    min-width: 0;
    padding-block: .3rem;
  }
}

@media (max-width: 767.98px) {
  .container-header .navbar-brand img {
    max-height: 52px;
    max-width: min(235px, 73vw);
  }
  .container-header .navbar-brand { font-size: 1.43rem; }
}


/* ================================================================
   Stage 2C v1.8 — authentic logo and light header
   Keeps all v1.7 homepage styling. Alters nav COLOURS only;
   never changes native Joomla collapse, layout or toggler visibility.
   ================================================================ */
.container-header {
  background-color: #ffffff;
  background-image: none;
  border-bottom: 2px solid #d8e5e8;
  box-shadow: 0 2px 16px rgb(16 44 62 / 8%);
}
.container-header .navbar-brand,
.container-header .site-title,
.container-header .site-description {
  color: var(--bc-navy-deep);
}
.container-header .navbar-brand a,
.container-header .navbar-brand a:visited {
  color: var(--bc-navy-deep);
  text-decoration: none;
}
.container-header .navbar-brand a:hover { color: var(--bc-teal-dark); }
.container-header .navbar-brand img {
  display: block;
  width: auto;
  max-height: 72px;
  max-width: min(326px, 82vw);
  object-fit: contain;
}
/* Native Cassiopeia menu remains in charge of responsive behaviour. */
.container-header .mod-menu,
.container-header .mod-menu a,
.container-header .mod-menu .nav-item > a,
.container-header .mod-menu .nav-item > span,
.container-header .metismenu.mod-menu {
  color: var(--bc-navy-deep);
}
.container-header .mod-menu a:hover,
.container-header .mod-menu .nav-item.current > a,
.container-header .mod-menu .nav-item.active > a {
  color: var(--bc-teal-dark);
}
.container-header .navbar-toggler {
  color: var(--bc-navy-deep);
  border-color: var(--bc-navy-deep);
}
/* On mobile the expanded menu uses navy text on the light header. */
@media (max-width: 767.98px) {
  .container-header .navbar-brand img {
    max-height: 56px;
    max-width: min(260px, 76vw);
  }
}


/* ======================================================================
   Borrowdale Creative — Stage 2C v1.9 (25 October 2026)
   Refinement of the VERIFIED working v1.8 complete stylesheet.

   Scope: pale-tinted compact header, right-aligned desktop navigation,
   gentler desktop banner fade, and reduced blank space between sections.

   Does NOT change Cassiopeia's mobile menu toggler, collapse mechanism,
   navigation visibility or markup. Existing logo and hero image are kept.
   ====================================================================== */

/* Very soft cream-to-sky fade, as in the selected early homepage mockup. */
.container-header {
  background-color: #f8faf9;
  background-image: linear-gradient(105deg,
    #fffdfa 0%,
    #f8faf9 38%,
    #e9f2f7 72%,
    #d6e8f2 100%);
  border-bottom: 1px solid #ccdde6;
  box-shadow: 0 2px 12px rgb(16 44 62 / 7%);
}

/* The tagline duplicates the nearby menu; keep the header uncluttered.
   The Joomla Tag Line field may also be cleared in template settings. */
.container-header .site-description {
  display: none;
}

/* Keep the original logo intact but modestly reduce vertical header size. */
.container-header .navbar-brand img {
  max-height: 64px;
  max-width: min(295px, 80vw);
}

/* Desktop only: position the existing Cassiopeia menu at the right.
   We align the outer nav container, NOT its links, toggler, or collapse. */
@media (min-width: 1280px) {
  .container-header:has(.navbar-brand):has(.container-nav) {
    grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
    column-gap: clamp(1.2rem, 2.5vw, 3.5rem);
    padding-block: .15rem;
    padding-inline: clamp(1.5rem, 3.3vw, 4rem);
  }
  .container-header > .grid-child:has(.navbar-brand) {
    padding-block: 0;
  }
  .container-header > .container-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: stretch;
    padding-block: 0;
  }
  .container-header > .container-nav > nav {
    margin-inline-start: auto;
  }
}

/* If the user has selected static Cassiopeia layout, retain its familiar
   centred alignment but use a little less space around the homepage. */
.container-component:has(.bc-home) {
  padding-top: clamp(.8rem, 1.4vw, 1.3rem);
  padding-bottom: clamp(1.5rem, 2.8vw, 2.8rem);
}

/* Slightly warmer, longer left-to-right fade on desktop ONLY.
   The small-screen vertical overlay from v1.8 is intentionally retained. */
@media (min-width: 601px) {
  .bc-home-hero::before {
    background: linear-gradient(90deg,
      rgb(250 249 245 / 96%) 0%,
      rgb(250 249 245 / 88%) 23%,
      rgb(250 249 245 / 57%) 42%,
      rgb(250 249 245 / 15%) 67%,
      rgb(250 249 245 / 0%) 88%);
  }
}

/* Remove excess gaps, especially between the hero and first product grid. */
.bc-home-section {
  padding-block: clamp(2rem, 3.3vw, 3.4rem);
}
.bc-home-section__head {
  margin-bottom: clamp(1.05rem, 1.65vw, 1.45rem);
}
.bc-home-hero {
  border-radius: 17px;
}
.bc-home-projects.bc-home-section {
  margin-block: clamp(.5rem, 1.2vw, 1rem);
}

@media (max-width: 767.98px) {
  .container-header .navbar-brand img {
    max-height: 53px;
    max-width: min(245px, 74vw);
  }
  .bc-home-section {
    padding-block: 2rem;
  }
  .bc-home-hero {
    border-radius: 14px;
  }
}


/* ======================================================================
   Borrowdale Creative — Stage 2C v2.0 | Edge-to-edge homepage hero
   Based on complete working v1.9 stylesheet.

   Remove Cassiopeia content-grid gutters and the remaining margin above
   the home page, WITHOUT affecting other pages or the mobile navigation.
   ====================================================================== */

/* On the homepage only, occupy the full CSS grid width. */
.site-grid > .container-component:has(.bc-home) {
  grid-column: full-start / full-end !important;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}

/* Suppress spacing on the homepage's grid and article containers only. */
.site-grid:has(.bc-home) {
  margin-top: 0;
  padding-top: 0;
  row-gap: 0;
}
.site-grid:has(.bc-home) .container-component > .item-page,
.site-grid:has(.bc-home) .container-component > .com-content-article {
  margin: 0;
  padding: 0;
}

/* Make the existing banner square and flush with its full-width parent. */
.bc-home > .bc-home-hero {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Keep subsequent content comfortably inset rather than edge-to-edge. */
.bc-home > .bc-home-section,
.bc-home > .bc-home-values {
  width: min(calc(100% - 3rem), 1400px);
  margin-inline: auto;
}

@media (max-width: 767.98px) {
  .bc-home > .bc-home-hero { border-radius: 0; }
  .bc-home > .bc-home-section,
  .bc-home > .bc-home-values {
    width: calc(100% - 2rem);
  }
}


/* =======================================================================
   Borrowdale Creative — Stage 2D v2.1 / native Joomla content showcases
   App / Game / Project / Book cards are populated using core Articles
   modules embedded in the homepage article with {loadposition ...}.
   No changes to Joomla's header, hamburger, hero, or full-bleed layout.
   ======================================================================= */
.bc-home-collection {
  min-width: 0;
}
.bc-home-collection .mod-articles-items,
.bc-home-collection ul.mod-articles,
.bc-home-collection ul.mod-articles-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.bc-home-collection .mod-articles-items > li,
.bc-home-collection ul.mod-articles > li {
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bc-home-collection .mod-articles-item {
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--bc-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--bc-shadow);
  display: flex;
  flex-direction: column;
}
.bc-home-collection .mod-articles-item > .mod-articles-item-content,
.bc-home-collection .mod-articles-item > .mod-articles-item__content {
  flex: 1;
}
.bc-home-collection .mod-articles-item-content {
  padding: clamp(1.2rem, 2vw, 1.8rem);
}
.bc-home-collection .mod-articles-item h3,
.bc-home-collection .mod-articles-item h4,
.bc-home-collection .mod-articles-item .mod-articles-title,
.bc-home-collection .mod-articles-item .mod-articles-title a {
  font-family: var(--bc-font-display);
  font-weight: 600;
  color: var(--bc-navy-deep);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.22;
  margin-bottom: .6rem;
  text-decoration: none;
}
.bc-home-collection .mod-articles-item h3 a,
.bc-home-collection .mod-articles-item h4 a { color: inherit; text-decoration: none; }
.bc-home-collection .mod-articles-item h3 a:hover,
.bc-home-collection .mod-articles-item h4 a:hover { color: var(--bc-teal-dark); }
.bc-home-collection .mod-articles-item p,
.bc-home-collection .mod-articles-item .mod-articles-introtext {
  color: var(--bc-muted);
  font-size: 1rem;
  line-height: 1.58;
}
.bc-home-collection .mod-articles-item figure,
.bc-home-collection .mod-articles-item .mod-articles-image { margin: 0; }
.bc-home-collection .mod-articles-item figure img,
.bc-home-collection .mod-articles-item .mod-articles-image img,
.bc-home-collection .mod-articles-item > img {
  display: block;
  width: 100%;
  height: clamp(205px, 22vw, 285px);
  object-fit: contain;
  object-position: center;
  background: linear-gradient(140deg, #e9f3f5, #f7fbfa);
}
.bc-home-collection--games .mod-articles-item figure img,
.bc-home-collection--games .mod-articles-item .mod-articles-image img,
.bc-home-collection--games .mod-articles-item > img {
  background: linear-gradient(145deg, #0f2334, #18485a);
}
.bc-home-collection--books .mod-articles-item figure img,
.bc-home-collection--books .mod-articles-item .mod-articles-image img,
.bc-home-collection--books .mod-articles-item > img {
  height: 295px;
  object-fit: contain;
  padding: 1rem;
  background: #f4f5f3;
}
.bc-home-collection .mod-articles-readmore a,
.bc-home-collection .mod-articles-item .readmore a {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  color: var(--bc-teal-dark);
  border-bottom: 2px solid currentColor;
  margin-top: .6rem;
}
.bc-home-collection .mod-articles-item:not(:has(img))::before {
  content: "Official image to follow";
  min-height: 155px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #476b76;
  background: linear-gradient(125deg, #e7f3f5, #fbfdfc);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .025em;
}
.bc-home-collection--games .mod-articles-item:not(:has(img))::before {
  content: "Gameplay screenshot to follow";
  background: linear-gradient(130deg, #0d2434, #194a60);
  color: #d4edf2;
}
.bc-home-collection--books .mod-articles-item:not(:has(img))::before {
  content: "Book cover to follow";
  background: linear-gradient(120deg, #e9e6df, #f8f5ee);
}
.bc-home-collection--projects .mod-articles-item:not(:has(img))::before {
  content: "Project screenshot to follow";
}
.bc-home-showcase-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
}
.bc-home-showcase-pair > * { min-width: 0; }
.bc-home-showcase-pair .bc-home-collection .mod-articles-items,
.bc-home-showcase-pair .bc-home-collection ul.mod-articles {
  grid-template-columns: minmax(0, 1fr);
}
.bc-home-projects--dynamic {
  display: block;
  padding: clamp(1.75rem, 3vw, 2.7rem);
}
.bc-home-projects--dynamic .bc-home-collection { margin-top: 1.3rem; }
.bc-home-projects--dynamic .mod-articles-item { background: #fff; }
.bc-home-collection--books .mod-articles-item { background: #fff; }
.bc-home-product-note { color: var(--bc-muted); font-size: .93rem; max-width: 65ch; }
@media (max-width: 767.98px) {
  .bc-home-showcase-pair,
  .bc-home-collection .mod-articles-items,
  .bc-home-collection ul.mod-articles,
  .bc-home-collection ul.mod-articles-items {
    grid-template-columns: minmax(0, 1fr);
  }
  .bc-home-collection .mod-articles-item figure img,
  .bc-home-collection .mod-articles-item .mod-articles-image img,
  .bc-home-collection .mod-articles-item > img {
    height: 235px;
  }
}


/* Stage 2F.2 v2.3 — Application detail pages; restore all Stage 2D card styles */
.bc-app-page{max-width:1180px;margin:0 auto;padding:clamp(1.3rem,3vw,2.5rem) 0 3rem}
.bc-app-head{display:flex;align-items:center;gap:clamp(1rem,3vw,2rem);margin-bottom:2rem}
.bc-app-icon{width:clamp(72px,9vw,112px);height:clamp(72px,9vw,112px);object-fit:contain;border-radius:20px}
.bc-app-eyebrow{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--bc-teal-dark);font-weight:800;margin-bottom:.45rem}
.bc-app-head h1{margin:0 0 .5rem}.bc-app-tagline{font-size:clamp(1.15rem,2vw,1.45rem);color:var(--bc-muted);margin:0}
.bc-app-version{font-size:.87rem;color:var(--bc-muted);margin:.5rem 0 0}
.bc-app-feature-image{background:#e9f3f3;border-radius:16px;overflow:hidden;margin:1.4rem 0 2rem}
.bc-app-feature-image img{display:block;width:100%;height:auto}
.bc-app-content{max-width:88ch;margin-bottom:2.8rem}.bc-app-content h2{margin-top:2rem}
.bc-app-downloads{padding:clamp(1.3rem,3vw,2.4rem);background:#eaf3f3;border-radius:18px;margin-top:2rem}
.bc-app-downloads h2{margin-top:0}.bc-app-platform-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.4rem}
.bc-app-platform{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem;padding:1.25rem;border:1px solid #d5e3e5;background:white;border-radius:12px;min-width:0}
.bc-app-platform strong{font-size:1.1rem;color:var(--bc-navy)}.bc-app-platform>span{font-size:.9rem;color:var(--bc-muted)}
.bc-app-download-link{display:inline-block;margin-top:.55rem;padding:.7rem 1rem;background:var(--bc-teal);color:white!important;text-decoration:none!important;border-radius:100px;font-weight:700}
.bc-app-download-link:hover{background:var(--bc-teal-dark)}.bc-app-platform .bc-app-status{display:inline-block;margin-top:.5rem;padding:.45rem .75rem;background:#f0f3f4;border-radius:100px;color:var(--bc-navy)}
.bc-app-info-links{display:flex;gap:1.5rem;flex-wrap:wrap;margin-top:1.75rem;font-weight:700}
@media(max-width:640px){.bc-app-platform-grid{grid-template-columns:1fr}.bc-app-head{align-items:flex-start}.bc-app-head h1{font-size:2rem}}


/* Stage 2G v2.4 — product page visual refinements (no homepage or menu changes) */
.bc-app-page { padding-top: clamp(.8rem, 1.8vw, 1.6rem); }
.bc-app-head { padding: clamp(1.25rem, 2.8vw, 2.5rem); border-radius: 18px;
  background: linear-gradient(115deg, #f4f9f8 0%, #edf5f7 57%, #e0eef3 100%);
  border: 1px solid #d9e7e8; }
.bc-app-head h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); }
.bc-app-tagline { color: var(--bc-navy); font-weight: 500; }
.bc-app-icon { flex-shrink: 0; background: white; padding: .35rem; border: 1px solid #d8e5e8; }
.bc-app-feature-image { margin-top: 0; box-shadow: 0 12px 30px rgb(16 44 62 / 8%); }
.bc-app-content { max-width: 92ch; font-size: 1.035rem; line-height: 1.78; }
.bc-app-content h2 { margin: 2.2rem 0 .85rem; padding-top: .2rem; }
.bc-app-content h3 { margin: 1.5rem 0 .6rem; color: var(--bc-navy); }
.bc-app-content hr { border-color: #d7e3e5; opacity: 1; margin: 2rem 0; }
.bc-app-gallery { margin: 2.5rem 0 3rem; }
.bc-app-gallery__heading { margin-bottom: 1.35rem; }
.bc-app-gallery__heading h2 { margin: 0 0 .35rem; }
.bc-app-gallery__heading > p:last-child { color: var(--bc-muted); margin-bottom: 0; }
.bc-app-gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 1.8vw, 1.4rem); }
.bc-app-gallery__item { display: flex; flex-direction: column; margin: 0; background: #fff;
  border: 1px solid var(--bc-line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--bc-shadow); }
.bc-app-gallery__item a { flex: 1; display: grid; align-items: center; min-height: 170px;
  padding: .65rem; background: linear-gradient(135deg, #edf5f6, #f7f9f8); }
.bc-app-gallery__item img { width: 100%; height: auto; max-height: 420px; object-fit: contain; display: block; margin: auto; }
.bc-app-gallery__item figcaption { padding: .85rem 1rem; color: var(--bc-navy); font-size: .9rem; line-height: 1.4; }
.bc-app-platform { box-shadow: 0 3px 12px rgb(16 44 62 / 4%); }
.bc-app-platform:has(.bc-app-download-link) { border-color: #80b6b7; }
@media (max-width: 1050px) { .bc-app-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .bc-app-head { padding: 1.1rem; gap: .9rem; }
  .bc-app-icon { width: 64px; height: 64px; border-radius: 12px; }
  .bc-app-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .bc-app-gallery__item a { min-height: 125px; padding: .3rem; }
  .bc-app-gallery__item figcaption { padding: .6rem; font-size: .8rem; }
}


/* ===============================================================
   Stage 2G v2.5 — product-page reading flow and visual hierarchy
   Scope: product.php layout only. Does not affect homepage or menu.
   =============================================================== */
.bc-app-page {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding: clamp(1rem, 2.5vw, 2rem) 0 clamp(2rem, 4vw, 4rem);
  font-size: 1rem;
}
.bc-app-head {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}
.bc-app-feature-image {
  margin: 0 0 clamp(1.25rem, 3vw, 2.25rem);
}
.bc-app-intro, .bc-app-details {
  width: min(100%, 900px);
  margin-inline: auto;
  font-size: clamp(1rem, 1.05vw, 1.09rem);
  line-height: 1.75;
}
.bc-app-intro { margin-bottom: clamp(1.6rem, 3vw, 2.8rem); }
.bc-app-intro > :last-child, .bc-app-details > :last-child { margin-bottom: 0; }
.bc-app-intro h1 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); }
.bc-app-intro p { margin-bottom: .85rem; }
.bc-app-gallery {
  margin: clamp(1.7rem, 3.5vw, 3.2rem) 0;
  padding: clamp(1rem, 2.5vw, 2rem);
  background: linear-gradient(125deg, #edf6f7 0%, #f8fbfa 100%);
  border: 1px solid #dce9ea;
  border-radius: 16px;
}
.bc-app-gallery__heading { margin-bottom: 1.1rem; }
.bc-app-gallery__grid { gap: clamp(.7rem, 1.3vw, 1.1rem); }
.bc-app-gallery__item { min-width: 0; }
.bc-app-gallery__item a { min-height: 0; }
.bc-app-gallery__item img { max-height: 360px; }
.bc-app-details { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.bc-app-details h2 { margin-top: clamp(1.8rem, 3vw, 2.7rem); }
.bc-app-details h3 { margin-top: 1.45rem; }
.bc-app-details hr { margin: 1.7rem 0; }
.bc-app-downloads { margin-top: 0; }
@media (max-width: 600px) {
  .bc-app-page { padding-inline: 0; }
  .bc-app-gallery { border-radius: 12px; padding: .85rem; }
  .bc-app-gallery__grid { gap: .6rem; }
  .bc-app-gallery__item img { max-height: 290px; }
  .bc-app-intro, .bc-app-details { font-size: 1rem; }
}


/* =============================================================
   Borrowdale Creative — Stage 2H v2.6
   Category Blog catalogue cards (Apps, Games and other listings)
   Does not change the homepage, native menu, or product.php layout.
   ============================================================= */
.com-content-category-blog .blog-items {
  column-gap: clamp(1rem, 2vw, 1.6rem);
  row-gap: clamp(1.25rem, 2.5vw, 2rem);
}
.com-content-category-blog .blog-items .blog-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--bc-line, #e0e6e7);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(16 44 62 / 7%);
  overflow: hidden;
}
.com-content-category-blog .blog-item .item-image {
  float: none !important;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.com-content-category-blog .blog-item .item-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  background: #edf6f7;
}
.com-content-category-blog .blog-item .item-content,
.com-content-category-blog .blog-item .item-content-container {
  min-width: 0;
}
.com-content-category-blog .blog-item .item-content {
  padding: clamp(1.15rem, 2vw, 1.65rem);
}
.com-content-category-blog .blog-item h2,
.com-content-category-blog .blog-item .item-title {
  font-family: var(--bc-font-display, Georgia, serif);
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  line-height: 1.2;
  margin: 0 0 .7rem;
}
.com-content-category-blog .blog-item h2 a,
.com-content-category-blog .blog-item .item-title a {
  color: var(--bc-navy-deep, #102c3e);
  text-decoration: none;
}
.com-content-category-blog .blog-item h2 a:hover,
.com-content-category-blog .blog-item .item-title a:hover {
  color: var(--bc-teal, #176e75);
}
.com-content-category-blog .blog-item p { line-height: 1.6; }
.com-content-category-blog .blog-item .readmore { margin: auto 0 0; padding: .25rem 1.2rem 1.25rem; }
.com-content-category-blog .blog-item .readmore a,
.com-content-category-blog .blog-item .readmore .btn {
  display: inline-flex;
  align-items: center;
  background: var(--bc-teal, #176e75);
  color: #fff;
  border: 1px solid var(--bc-teal, #176e75);
  border-radius: 99px;
  padding: .65rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
}
.com-content-category-blog .blog-item .readmore a:hover,
.com-content-category-blog .blog-item .readmore .btn:hover {
  background: var(--bc-teal-dark, #11575e);
  border-color: var(--bc-teal-dark, #11575e);
  color: #fff;
}
/* Guard against overflowing catalogue cards on phones. */
@media (max-width: 767.98px) {
  .com-content-category-blog .blog-items .blog-item { border-radius: 12px; }
  .com-content-category-blog .blog-item .item-image img { max-height: none; }
}


/* ================================================================
   Stage 2I.3 v2.7 — Books and Custom Projects detail pages ONLY.
   No homepage, Cassiopeia menu, or app product override rules changed.
   ================================================================ */
.bc-portfolio-detail { margin-inline: auto; max-width: 1320px; color: var(--bc-ink); }
.bc-portfolio-detail * { box-sizing: border-box; }
.bc-portfolio-hero { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.bc-portfolio-hero--book { grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr); padding: clamp(1.4rem, 3vw, 3rem); background: linear-gradient(120deg,#eaf2f4,#fffefa); border: 1px solid var(--bc-line); border-radius: 18px; }
.bc-portfolio-cover { margin: 0; display: grid; place-items: center; }
.bc-portfolio-cover img { display: block; width: auto; max-width: 100%; max-height: 510px; object-fit: contain; border-radius: 3px; box-shadow: 10px 14px 26px rgb(16 44 62 / 16%); }
.bc-portfolio-kicker { color: var(--bc-teal-dark); font: 800 .76rem/1.5 var(--bc-font-body,Arial,sans-serif); text-transform: uppercase; letter-spacing: .13em; }
.bc-portfolio-summary h1, .bc-project-heading h1 { font-size: clamp(2rem, 3.5vw, 3.6rem); margin: .4rem 0 1.25rem; }
.bc-portfolio-byline { font-size: 1.1rem; color: var(--bc-muted); }
.bc-portfolio-facts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1.4rem 0; }
.bc-portfolio-facts > div { min-width: 110px; }
.bc-portfolio-facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--bc-muted); margin-bottom: .2rem; }
.bc-portfolio-facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.bc-portfolio-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.3rem; }
.bc-portfolio-detail a.bc-portfolio-btn { display: inline-flex; align-items: center; border: 1px solid var(--bc-teal); background: var(--bc-teal); color: #fff; border-radius: 999px; padding: .7rem 1.2rem; text-decoration: none; font-weight: 700; }
.bc-portfolio-detail a.bc-portfolio-btn:hover { background: var(--bc-teal-dark); color: #fff; }
.bc-portfolio-detail a.bc-portfolio-btn--outline { background: transparent; color: var(--bc-teal-dark); }
.bc-portfolio-detail a.bc-portfolio-btn--outline:hover { background: var(--bc-teal); color: #fff; }
.bc-portfolio-body { width: min(100%, 84ch); max-width: 84ch; margin: clamp(1.6rem, 4vw, 3.3rem) auto; font-size: 1.05rem; line-height: 1.8; }
.bc-portfolio-body h2 { margin-top: 2rem; }
.bc-portfolio-body h3 { margin-top: 1.5rem; }
.bc-portfolio-body img { max-width: 100%; height: auto; }
.bc-project-heading { padding: clamp(1.4rem, 3vw, 3rem); background: linear-gradient(115deg,#edf4f5,#fffefa); border-radius: 18px; margin-bottom: 1.2rem; }
.bc-project-feature { margin: 0; padding: clamp(.5rem,1.5vw,1rem); background: #eef3f4; border-radius: 14px; text-align: center; }
.bc-project-feature img { max-width: 100%; max-height: 650px; height: auto; width: auto; object-fit: contain; border-radius: 8px; }
@media (max-width: 700px) {
  .bc-portfolio-hero--book { grid-template-columns: 1fr; }
  .bc-portfolio-cover img { max-height: 380px; }
  .bc-portfolio-body { padding-inline: .6rem; }
  .bc-project-heading { padding: 1.4rem; }
}

/* ================================================================
   Borrowdale Creative — Stage 2I.4 v2.9 portfolio visual polish
   CSS-only update. Keeps working v2.8 book.php and project.php intact.
   ================================================================ */
/* Book: modest cover column, comfortable metadata and aligned buttons. */
.bc-book-detail .bc-portfolio-hero--book {
  grid-template-columns: minmax(170px, .72fr) minmax(0, 1.65fr);
  gap: clamp(1.4rem, 3.6vw, 3.5rem);
  align-items: center;
  padding: clamp(1.4rem, 3vw, 3rem);
}
.bc-book-detail .bc-portfolio-cover { align-self: center; min-width: 0; }
.bc-book-detail .bc-portfolio-cover img {
  width: auto; max-width: 100%; max-height: 470px; height: auto;
  object-fit: contain;
}
.bc-book-detail .bc-portfolio-summary { min-width: 0; }
.bc-book-detail .bc-portfolio-summary h1 {
  font-size: clamp(2rem, 3.1vw, 3.25rem);
  line-height: 1.13;
  max-width: 20ch;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}
.bc-book-detail .bc-portfolio-byline { margin-bottom: .75rem; }
.bc-book-detail .bc-portfolio-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1.4rem; }
.bc-book-detail .bc-portfolio-facts > div { min-width: 0; }
.bc-book-detail .bc-portfolio-facts dd { font-size: .96rem; line-height: 1.5; }
.bc-book-detail .bc-portfolio-actions { align-items: center; gap: .7rem; }
.bc-book-detail .bc-portfolio-btn { min-height: 44px; }
/* Projects: stronger, less empty header and a well-framed actual screenshot. */
.bc-project-detail .bc-project-heading {
  padding: clamp(1.4rem, 3vw, 2.6rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}
.bc-project-detail .bc-project-heading h1 { font-size: clamp(2rem, 3.4vw, 3.5rem); line-height: 1.13; }
.bc-project-detail .bc-portfolio-facts { gap: .75rem 2rem; }
.bc-project-detail .bc-project-feature { padding: clamp(.75rem, 1.5vw, 1.4rem); }
.bc-project-detail .bc-project-feature img { display: block; max-height: 620px; margin-inline: auto; box-shadow: 0 7px 26px rgb(16 44 62 / 10%); }
/* Improve the reading section of either portfolio type without constraining media. */
.bc-portfolio-detail .bc-portfolio-body { font-size: clamp(1rem, 1.1vw, 1.075rem); line-height: 1.75; }
.bc-portfolio-detail .bc-portfolio-body h2 { margin-top: 2.25rem; line-height: 1.23; }
.bc-portfolio-detail .bc-portfolio-body h3 { margin-top: 1.65rem; }
.bc-portfolio-detail .bc-portfolio-body a { text-underline-offset: .18em; }
@media (max-width: 820px) {
  .bc-book-detail .bc-portfolio-hero--book { grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr); }
  .bc-book-detail .bc-portfolio-facts { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .bc-book-detail .bc-portfolio-hero--book { grid-template-columns: 1fr; gap: 1.3rem; }
  .bc-book-detail .bc-portfolio-cover img { max-height: 350px; }
  .bc-book-detail .bc-portfolio-summary h1 { max-width: none; font-size: clamp(2rem, 7vw, 2.7rem); }
  .bc-project-detail .bc-project-heading { padding: 1.2rem; }
}


/* ================================================================
   Borrowdale Creative — Stage 2I.5 v3.0
   Homepage BOOKS and CUSTOM PROJECTS showcase only.
   Keep existing Joomla modules and article content unchanged.
   No changes to product/book/project overrides or navigation.
   ================================================================ */

/* Two balanced editorial showcase cards on desktop */
.bc-home-collection--books .mod-articles-items,
.bc-home-collection--books ul.mod-articles,
.bc-home-collection--books ul.mod-articles-items,
.bc-home-collection--projects .mod-articles-items,
.bc-home-collection--projects ul.mod-articles,
.bc-home-collection--projects ul.mod-articles-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1rem, 2.2vw, 1.8rem);
}

/* Shared polish: cards are equal-height and reading text stays compact */
.bc-home-collection--books .mod-articles-item,
.bc-home-collection--projects .mod-articles-item {
  border-radius: 16px;
  border-color: #dce6e7;
  box-shadow: 0 10px 30px rgb(16 44 62 / 8%);
  min-width: 0;
}
.bc-home-collection--books .mod-articles-item-content,
.bc-home-collection--projects .mod-articles-item-content {
  padding: clamp(1.2rem, 2vw, 1.75rem);
}
.bc-home-collection--books .mod-articles-item h3,
.bc-home-collection--books .mod-articles-item h4,
.bc-home-collection--projects .mod-articles-item h3,
.bc-home-collection--projects .mod-articles-item h4 {
  font-size: clamp(1.4rem, 2.15vw, 1.95rem);
  line-height: 1.17;
  overflow-wrap: anywhere;
}
.bc-home-collection--books .mod-articles-item p,
.bc-home-collection--projects .mod-articles-item p { line-height: 1.58; }

/* Books: use a dedicated portrait-cover presentation in a soft colour field.
   Images are contained without cutting off official book artwork. */
.bc-home-collection--books .mod-articles-item figure,
.bc-home-collection--books .mod-articles-item .mod-articles-image {
  width: 100%;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.8rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  background: linear-gradient(145deg, #f0f5f4 0%, #fbf8f1 100%);
}
.bc-home-collection--books .mod-articles-item figure img,
.bc-home-collection--books .mod-articles-item .mod-articles-image img,
.bc-home-collection--books .mod-articles-item > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 305px;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border-radius: 3px;
  box-shadow: 7px 10px 22px rgb(16 44 62 / 17%);
}
/* If a module prints the image inside a plain link, preserve the cover sizing. */
.bc-home-collection--books .mod-articles-item figure a,
.bc-home-collection--books .mod-articles-item .mod-articles-image a {
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
}

/* Projects: landscape screenshots should be prominent but never distorted. */
.bc-home-collection--projects .mod-articles-item figure,
.bc-home-collection--projects .mod-articles-item .mod-articles-image {
  margin: 0;
  background: #e9f1f3;
}
.bc-home-collection--projects .mod-articles-item figure img,
.bc-home-collection--projects .mod-articles-item .mod-articles-image img,
.bc-home-collection--projects .mod-articles-item > img {
  width: 100%;
  height: clamp(190px, 20vw, 275px);
  padding: .55rem;
  object-fit: contain;
  background: linear-gradient(135deg, #e3eef1, #f4f8f8);
}

/* Distinct and easily discoverable links without changing HTML output. */
.bc-home-collection--books .mod-articles-readmore a,
.bc-home-collection--books .mod-articles-item .readmore a,
.bc-home-collection--projects .mod-articles-readmore a,
.bc-home-collection--projects .mod-articles-item .readmore a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .55rem 1rem;
  border: 1px solid var(--bc-teal, #176e75);
  border-radius: 999px;
  background: var(--bc-teal, #176e75);
  color: white;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 700;
  transition: background-color .15s ease;
}
.bc-home-collection--books .mod-articles-readmore a:hover,
.bc-home-collection--books .mod-articles-item .readmore a:hover,
.bc-home-collection--projects .mod-articles-readmore a:hover,
.bc-home-collection--projects .mod-articles-item .readmore a:hover {
  background: var(--bc-teal-dark, #11575e);
  color: #fff;
}

/* Do not let layout overflow on tablets and small phones. */
@media (max-width: 767.98px) {
  .bc-home-collection--books .mod-articles-items,
  .bc-home-collection--books ul.mod-articles,
  .bc-home-collection--books ul.mod-articles-items,
  .bc-home-collection--projects .mod-articles-items,
  .bc-home-collection--projects ul.mod-articles,
  .bc-home-collection--projects ul.mod-articles-items {
    grid-template-columns: minmax(0, 1fr);
  }
  .bc-home-collection--books .mod-articles-item figure,
  .bc-home-collection--books .mod-articles-item .mod-articles-image { min-height: 270px; }
  .bc-home-collection--books .mod-articles-item figure img,
  .bc-home-collection--books .mod-articles-item .mod-articles-image img,
  .bc-home-collection--books .mod-articles-item > img { max-height: 250px; height: auto; }
  .bc-home-collection--projects .mod-articles-item figure img,
  .bc-home-collection--projects .mod-articles-item .mod-articles-image img,
  .bc-home-collection--projects .mod-articles-item > img { height: auto; max-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-home-collection--books .mod-articles-readmore a,
  .bc-home-collection--projects .mod-articles-readmore a { transition: none; }
}

/* ==============================================================
   Borrowdale Creative Stage 2J v3.1: About, Contact and footer.
   Only content elements; do not change Cassiopeia menu behaviour.
   ============================================================== */
.bc-footer { width:100%; max-width:1240px; margin-inline:auto; padding:2.2rem 1.2rem 1.3rem; color:#eef5f6; }
.bc-footer__grid {display:grid; grid-template-columns:minmax(0,1.6fr) repeat(2,minmax(0,1fr)); gap:clamp(1.5rem,4vw,4rem);}
.bc-footer h2, .bc-footer h3 {color:#fff; margin:0 0 .7rem; font-family:var(--bc-font-body,Arial,sans-serif);}
.bc-footer h2 {font-size:1.3rem;} .bc-footer h3 {font-size:1rem;}
.bc-footer p {font-size:.95rem; line-height:1.65; color:#dce9ec;}
.bc-footer a {color:#e2f3f3; text-underline-offset:.18em;}
.bc-footer a:hover {color:#fff;}
.bc-footer__nav {list-style:none; padding:0; margin:0; display:grid; gap:.36rem;}
.bc-footer__nav a {text-decoration:none; font-size:.96rem;}
.bc-footer__line {border-top:1px solid rgb(255 255 255 / 20%); padding-top:1rem; margin-top:2rem; font-size:.85rem; color:#dce9ec;}
.bc-footer__line p {margin:0;font-size:.85rem;}
/* Native Joomla Footer module supplies current-year copyright; retain it
   as a separate module so no script or PHP in the article is necessary. */
.container-footer .mod-footer {font-size:.85rem; color:#dce9ec; text-align:center; padding:0 1.25rem 1rem;}
.bc-about {max-width:1120px; margin:0 auto;}
.bc-about__intro {background:linear-gradient(125deg,#eef5f3,#f8faf9); padding:clamp(1.5rem,4vw,3.5rem); border-left:4px solid var(--bc-teal,#176e75);}
.bc-about__intro p {max-width:70ch;}
.bc-about__grid {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(1rem,3vw,2rem); margin:2rem 0;}
.bc-about__panel {background:#fff; border:1px solid var(--bc-line,#e0e6e7); border-radius:14px; padding:clamp(1.2rem,2.5vw,2rem);}
.bc-about__panel h2 {margin-top:0;}
.com-contact.contact {max-width:1050px; margin-inline:auto;}
.com-contact .contact-form, .com-contact #contact-form {background:#fff; border:1px solid var(--bc-line,#e0e6e7); border-radius:16px; padding:clamp(1.3rem,3vw,2.5rem); box-shadow:var(--bc-shadow,0 12px 36px rgb(16 44 62 / 8%));}
.com-contact .form-control, .com-contact textarea {max-width:100%;}
@media(max-width:767.98px){.bc-footer__grid,.bc-about__grid {grid-template-columns:1fr;}.bc-footer{padding:1.7rem 1rem 1rem;}.bc-footer__line{margin-top:1.25rem;}}


/* ===============================================================
   Borrowdale Creative — Stage 2J.1 v3.2
   Unified HOMEPAGE showcase cards. Does not affect product pages,
   category pages, hero, navigation or contact form.
   =============================================================== */
.bc-home .bc-home-collection .mod-articles-items,
.bc-home .bc-home-collection ul.mod-articles,
.bc-home .bc-home-collection ul.mod-articles-items {
  align-items: stretch;
}
.bc-home .bc-home-collection .mod-articles-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border: 1px solid #dce6e7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(16 44 62 / 8%);
  overflow: hidden;
}
/* Joomla's Articles module varies its content wrappers by layout. */
.bc-home .bc-home-collection .mod-articles-item-content,
.bc-home .bc-home-collection .mod-articles-item__content {
  flex: 1 1 auto;
  min-width: 0;
  padding: clamp(1rem, 1.7vw, 1.5rem);
}
.bc-home .bc-home-collection .mod-articles-item h3,
.bc-home .bc-home-collection .mod-articles-item h4,
.bc-home .bc-home-collection .mod-articles-item .mod-articles-title {
  color: var(--bc-navy-deep);
  font-family: var(--bc-font-display);
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  line-height: 1.22;
  margin: 0 0 .75rem;
  overflow-wrap: break-word;
}
.bc-home .bc-home-collection .mod-articles-item p,
.bc-home .bc-home-collection .mod-articles-introtext {
  color: var(--bc-muted);
  font-size: .95rem;
  line-height: 1.55;
}
/* Respect different media shapes while giving each card a visual anchor. */
.bc-home .bc-home-collection--apps .mod-articles-item figure,
.bc-home .bc-home-collection--games .mod-articles-item figure,
.bc-home .bc-home-collection--projects .mod-articles-item figure,
.bc-home .bc-home-collection--apps .mod-articles-image,
.bc-home .bc-home-collection--games .mod-articles-image,
.bc-home .bc-home-collection--projects .mod-articles-image {
  margin: 0;
  width: 100%;
  min-height: 0;
}
.bc-home .bc-home-collection--apps .mod-articles-item figure img,
.bc-home .bc-home-collection--apps .mod-articles-image img,
.bc-home .bc-home-collection--games .mod-articles-item figure img,
.bc-home .bc-home-collection--games .mod-articles-image img,
.bc-home .bc-home-collection--projects .mod-articles-item figure img,
.bc-home .bc-home-collection--projects .mod-articles-image img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: clamp(190px, 20vw, 270px);
  object-fit: contain;
  object-position: center;
}
.bc-home .bc-home-collection--books .mod-articles-item figure,
.bc-home .bc-home-collection--books .mod-articles-image {
  min-height: clamp(245px, 26vw, 315px);
}
.bc-home .bc-home-collection--books .mod-articles-item figure img,
.bc-home .bc-home-collection--books .mod-articles-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 295px;
  object-fit: contain;
}
/* Same pill-shaped CTA on ALL four collections. */
.bc-home .bc-home-collection .mod-articles-readmore,
.bc-home .bc-home-collection .readmore { margin-top: auto; }
.bc-home .bc-home-collection .mod-articles-readmore a,
.bc-home .bc-home-collection .mod-articles-item .readmore a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .6rem 1rem;
  margin-top: .8rem;
  background: var(--bc-teal);
  border: 1px solid var(--bc-teal);
  border-radius: 999px;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.25;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.bc-home .bc-home-collection .mod-articles-readmore a:hover,
.bc-home .bc-home-collection .mod-articles-item .readmore a:hover {
  background: var(--bc-teal-dark);
  border-color: var(--bc-teal-dark);
  color: #fff;
}
@media (max-width: 767.98px) {
  .bc-home .bc-home-collection--apps .mod-articles-item figure img,
  .bc-home .bc-home-collection--games .mod-articles-item figure img,
  .bc-home .bc-home-collection--projects .mod-articles-item figure img,
  .bc-home .bc-home-collection--apps .mod-articles-image img,
  .bc-home .bc-home-collection--games .mod-articles-image img,
  .bc-home .bc-home-collection--projects .mod-articles-image img {
    height: auto;
    max-height: 270px;
  }
}

/* Preserve Stage 2J contact heading correction */
body.bc-contact-page .com-contact > h2 { display: none; }

/* Practical AI learning resources — isolated from the rest of Cassiopeia */
.bc-pa {--pa-navy:#12324c;--pa-teal:#167e82;--pa-pale:#eaf5f4;--pa-text:#1d3348; color:var(--pa-text); max-width:1060px; margin:0 auto; font-size:1.05rem;line-height:1.62;}
.bc-pa h2,.bc-pa h3,.bc-pa h4 {color:var(--pa-navy);font-family:inherit;line-height:1.25;}
.bc-pa .bc-pa-eyebrow{font-size:.76rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--pa-teal);margin:0 0 .7rem;}
.bc-pa .bc-pa-hero{padding:2rem 2.2rem;background:linear-gradient(125deg,#eff7f7,#fafcfd);border-top:5px solid var(--pa-teal);margin:0 0 2rem;}
.bc-pa .bc-pa-hero h2{font-size:clamp(2rem,4vw,2.75rem);margin:.2rem 0 1rem;}
.bc-pa .bc-pa-hero p:last-child{max-width:760px;margin-bottom:0;}
.bc-pa .bc-pa-panel{border:1px solid #d2e0e2;border-radius:12px;padding:2rem;margin-bottom:2rem;}
.bc-pa .bc-pa-panel h3{font-size:1.8rem;}
.bc-pa .bc-pa-downloads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.3rem;margin-top:1.5rem;}
.bc-pa .bc-pa-card{background:#f8fbfc;border:1px solid #d6e6e5;border-radius:10px;padding:1.55rem;display:flex;flex-direction:column;align-items:flex-start;}
.bc-pa .bc-pa-card h4{font-size:1.22rem;margin:.6rem 0 .7rem;}
.bc-pa .bc-pa-card p{margin:0 0 1.5rem;flex:1;}
.bc-pa .bc-pa-tag{font-size:.72rem;letter-spacing:.09em;font-weight:800;color:var(--pa-teal);}
.bc-pa .bc-pa-button{background:var(--pa-teal);border:2px solid var(--pa-teal);border-radius:6px;color:#fff!important;display:inline-block;font-weight:700;line-height:1.25;padding:.85rem 1.1rem;text-decoration:none!important;}
.bc-pa .bc-pa-button:focus-visible,.bc-pa .bc-pa-button:hover{background:var(--pa-navy);border-color:var(--pa-navy);outline-offset:3px;}
.bc-pa .bc-pa-print,.bc-pa .bc-pa-note{padding:1.4rem 2rem;margin:1.2rem 0;background:#f7f9fa;border-left:4px solid var(--pa-teal);}
.bc-pa ol {padding-left:1.5rem;}.bc-pa li {margin:.55rem 0;}
.bc-pa .bc-pa-footer{border-top:1px solid #d6e0e1;font-size:.88rem;color:#536475;padding-top:1rem;margin:2rem 0;}
@media(max-width:760px){.bc-pa .bc-pa-downloads{grid-template-columns:1fr;}.bc-pa .bc-pa-hero,.bc-pa .bc-pa-panel,.bc-pa .bc-pa-print,.bc-pa .bc-pa-note{padding:1.25rem;}}


