/* ==========================================================
   EURODOC Design System
   Global colours, typography and layout
   ========================================================== */

:root {
  --eurodoc-blue: #008acb;
  --eurodoc-blue-dark: #006b9e;
  --eurodoc-blue-light: #eaf6fb;

  --eurodoc-navy: #172b3a;
  --eurodoc-text: #263746;
  --eurodoc-muted: #667786;
  --eurodoc-border: #d9e1e7;
  --eurodoc-surface: #f5f7f9;
  --eurodoc-white: #ffffff;

  --bs-primary: #005ea8;
  --bs-primary-rgb: 0, 94, 168;

  --bs-body-color: #263746;
  --bs-body-bg: #ffffff;

  --bs-link-color: #005ea8;
  --bs-link-color-rgb: 0, 94, 168;
  --bs-link-hover-color: #003f73;
  --bs-link-hover-color-rgb: 0, 63, 115;

  --bs-border-color: #d9e1e7;

  --bs-body-font-family:
    "Inter",
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;

  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.65;

  /* EURODOC: square corners throughout */
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-xxl: 0;
  --bs-border-radius-pill: 0;
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  height: auto !important;
  color: var(--eurodoc-text);
  background: var(--eurodoc-white);
  font-family: var(--bs-body-font-family);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/*
 * Bootstrap5 adds h-100 to the off-canvas page wrapper.
 * On long pages that fixed 100% height can make the footer appear
 * inside the visible viewport while main content continues below it.
 * Use min-height instead so the wrapper grows with the page.
 */
.dialog-off-canvas-main-canvas {
  min-height: 100vh;
  height: auto !important;
}

/* ==========================================================
   Typography
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--eurodoc-navy);
  font-weight: 650;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--eurodoc-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus {
  color: var(--eurodoc-blue-dark);
}

/* ==========================================================
   Global container
   ========================================================== */

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  width: min(100% - 3rem, 1320px);
  max-width: 1320px;
  padding-left: 0;
  padding-right: 0;
}

main {
  min-height: 50vh;
  padding-bottom: 4rem;
  flex: 1 0 auto;
}

::selection {
  color: #ffffff;
  background: var(--eurodoc-blue);
}

/* ==========================================================
   Header & Main Navigation
   ========================================================== */

header[role="banner"] {
  background: var(--eurodoc-white);
  border-bottom: 1px solid #e5e9ed;
}

.navbar {
  min-height: 92px;
  padding: 0;
  background: var(--eurodoc-white) !important;
}

.navbar > .container,
.navbar > .container-sm,
.navbar > .container-md,
.navbar > .container-lg,
.navbar > .container-xl,
.navbar > .container-xxl {
  justify-content: flex-start;
}

.region-nav-branding {
  flex: 0 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.navbar-brand img {
  width: auto;
  height: 58px;
  max-width: 195px;
  object-fit: contain;
}

.navbar-collapse {
  flex-grow: 0 !important;
  flex-basis: auto;
  margin-left: clamp(2rem, 3vw, 3.5rem);
}

.region-nav-main {
  width: auto;
}

.navbar-nav {
  align-items: center;
  gap: 0.15rem;
}

.navbar-nav .nav-link {
  position: relative;
  color: var(--eurodoc-text) !important;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  padding: 2.15rem 0.78rem !important;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active,
.navbar-nav .nav-item.active > .nav-link {
  color: var(--eurodoc-blue) !important;
}

.navbar .dropdown-toggle::after {
  margin-left: 0.32rem;
  vertical-align: 0.16em;
  transition: border-color 0.18s ease;
}

.navbar .dropdown-menu {
  min-width: 240px;
  max-width: min(420px, calc(100vw - 2rem));
  margin-top: 0;
  padding: 0.55rem 0;
  background: var(--eurodoc-white);
  border: 1px solid var(--eurodoc-border);
  border-radius: 0 !important;
  box-shadow: 0 10px 24px rgba(23, 43, 58, 0.08);
}

.navbar .dropdown-item {
  padding: 0.65rem 1rem;
  color: var(--eurodoc-text);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  color: var(--eurodoc-blue-dark);
  background: var(--eurodoc-blue-light);
}

.navbar-nav > .nav-item:last-child > .dropdown-menu {
  right: 0;
  left: auto;
}

.navbar-toggler {
  margin-left: auto;
  padding: 0.45rem;
  border: 1px solid var(--eurodoc-border);
  border-radius: 0 !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(0, 94, 168, 0.15);
}

/* ==========================================================
   Breadcrumbs & page spacing
   ========================================================== */

.breadcrumb {
  margin: 0;
  padding: 1.1rem 0 0;
  background: transparent;
  font-size: 0.9rem;
  line-height: 1.4;
}

.breadcrumb-item {
  color: var(--eurodoc-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #9aa6af;
}

.breadcrumb-item a {
  color: var(--eurodoc-muted);
  text-decoration: none;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
  color: var(--eurodoc-blue);
}

.breadcrumb-item.active {
  color: var(--eurodoc-text);
}

main .region-content {
  padding-top: 1.6rem;
}

.page-title,
h1.page-title {
  margin-bottom: 1.4rem;
}

.node--type-basic-page .field--name-body,
.node--type-news .field--name-body {
  max-width: 900px;
}

.node--type-basic-page .field--name-body p,
.node--type-news .field--name-body p {
  line-height: 1.75;
}

/* ==========================================================
   Global content geometry
   ========================================================== */

main > .container,
main > .container-sm,
main > .container-md,
main > .container-lg,
main > .container-xl,
main > .container-xxl {
  width: min(100% - 3rem, 1320px);
  max-width: 1320px;
}

main,
.region-content,
.region-sidebar-second {
  min-width: 0;
}

/* ==========================================================
   Footer
   Actual markup:
   footer[role="contentinfo"] > .container > .region-footer
   ========================================================== */

footer[role="contentinfo"] {
  width: 100%;
  margin-top: 4rem !important;
  padding: 3.5rem 0 1.5rem;
  background: var(--eurodoc-navy) !important;
  color: rgba(255, 255, 255, 0.84);
  flex: 0 0 auto;
  position: static !important;
}

footer[role="contentinfo"] > .container {
  width: min(100% - 3rem, 1320px);
  max-width: 1320px;
  padding-left: 0;
  padding-right: 0;
}

footer[role="contentinfo"] .region-footer,
footer[role="contentinfo"] .region-footer > .block,
footer[role="contentinfo"] .field--name-body,
footer[role="contentinfo"] .eurodoc-footer {
  width: 100%;
}

footer[role="contentinfo"] .eurodoc-footer h2 {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

footer[role="contentinfo"] .eurodoc-footer p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.65;
}

footer[role="contentinfo"] .eurodoc-footer .col-lg-6 p {
  max-width: 620px;
}

footer[role="contentinfo"] .eurodoc-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

footer[role="contentinfo"] .eurodoc-footer li {
  margin-bottom: 0.5rem;
}

footer[role="contentinfo"] .eurodoc-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.18s ease;
}

footer[role="contentinfo"] .eurodoc-footer a:hover,
footer[role="contentinfo"] .eurodoc-footer a:focus {
  color: #ffffff;
}

footer[role="contentinfo"] .eurodoc-footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

footer[role="contentinfo"] .eurodoc-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.875rem;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1199.98px) and (min-width: 992px) {
  .navbar-collapse {
    margin-left: 1.5rem;
  }

  .navbar-nav .nav-link {
    padding-right: 0.48rem !important;
    padding-left: 0.48rem !important;
    font-size: 0.92rem;
  }

  .navbar-brand img {
    height: 52px;
    max-width: 175px;
  }
}

@media (max-width: 991.98px) {
  .navbar {
    min-height: 76px;
  }

  .navbar-brand img {
    height: 46px;
    max-width: 155px;
  }

  .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
    padding: 0.75rem 0 1rem;
  }

  .navbar-nav {
    align-items: stretch;
    gap: 0;
  }

  .navbar-nav .nav-link {
    padding: 0.7rem 0 !important;
    white-space: normal;
  }

  .navbar .dropdown-menu {
    width: 100%;
    max-width: none;
    margin: 0 0 0.5rem;
    padding: 0.25rem 0;
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }

  .navbar .dropdown-item {
    padding: 0.6rem 0.75rem;
  }

  .navbar-nav > .nav-item:last-child > .dropdown-menu {
    right: auto;
    left: auto;
  }
}

@media (max-width: 767.98px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    width: min(100% - 2rem, 1320px);
  }

  footer[role="contentinfo"] {
    padding-top: 2.5rem;
  }

  footer[role="contentinfo"] > .container {
    width: min(100% - 2rem, 1320px);
  }

  footer[role="contentinfo"] .eurodoc-footer-bottom {
    margin-top: 2rem;
  }
}

/* ---------------------------------------------------------
   EURODOC ACTIVE NAVIGATION STATES
   --------------------------------------------------------- */
.navbar-nav .nav-link.active,
.navbar-nav .nav-item.active > .nav-link,
.navbar-nav .nav-link.is-active {
  color: var(--eurodoc-blue-dark) !important;
  background: var(--eurodoc-blue-light) !important;
}

.navbar-nav .nav-link.active:hover,
.navbar-nav .nav-item.active > .nav-link:hover,
.navbar-nav .nav-link.is-active:hover {
  color: #005f8c !important;
  background: #ddf1f9 !important;
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:active,
.navbar .dropdown-item.is-active {
  color: #005f8c !important;
  background: #ddf1f9 !important;
}

.navbar .dropdown-item.active:hover,
.navbar .dropdown-item.is-active:hover {
  color: #004d73 !important;
  background: #cfeaf6 !important;
}

/* ---------------------------------------------------------
   EURODOC MOBILE NAV POLISH
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
  header[role="banner"] .navbar {
    min-height: 68px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  header[role="banner"] .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
  }

  header[role="banner"] .site-logo img {
    height: 42px;
    width: auto;
    max-width: 150px;
  }

  header[role="banner"] .navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 0.35rem;
    border-radius: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  header[role="banner"] .navbar-toggler-icon {
    width: 1.55rem;
    height: 1.55rem;
  }

  header[role="banner"] .navbar-collapse {
    width: 100%;
    margin-left: 0 !important;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
  }

  header[role="banner"] .region-nav-main,
  header[role="banner"] .region-nav-main > nav {
    width: 100%;
  }

  header[role="banner"] .navbar-nav {
    width: 100%;
    gap: 0;
  }

  header[role="banner"] .navbar-nav > .nav-item {
    width: 100%;
  }

  header[role="banner"] .navbar-nav > .nav-item > .nav-link {
    width: 100%;
    min-height: auto;
    padding: 0.7rem 0.95rem;
    font-size: 1rem;
    line-height: 1.35;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  header[role="banner"] .navbar-nav > .nav-item > .nav-link.active,
  header[role="banner"] .navbar-nav > .nav-item.active > .nav-link,
  header[role="banner"] .navbar-nav > .nav-item > .nav-link.is-active {
    background: var(--eurodoc-blue-light) !important;
    color: var(--eurodoc-blue-dark) !important;
  }

  header[role="banner"] .dropdown-menu {
    position: static !important;
    width: 100%;
    max-width: none !important;
    min-width: 0;
    margin: 0.2rem 0 0.35rem;
    padding: 0.15rem 0 0.35rem;
    border: 0;
    border-bottom: 1px solid var(--eurodoc-border);
    box-shadow: none;
    border-radius: 0 !important;
    background: transparent;
  }

  header[role="banner"] .dropdown-item {
    width: 100%;
    padding: 0.65rem 1.35rem;
    font-size: 0.94rem;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    background: #f6fbfe;
  }

  header[role="banner"] .dropdown-item:hover,
  header[role="banner"] .dropdown-item:focus {
    color: var(--eurodoc-blue-dark);
    background: #eef8fc;
  }

  header[role="banner"] .dropdown-item.active,
  header[role="banner"] .dropdown-item:active,
  header[role="banner"] .dropdown-item.is-active {
    color: #005f8c !important;
    background: #ddf1f9 !important;
  }
}

@media (max-width: 575.98px) {
  header[role="banner"] .navbar {
    min-height: 64px;
  }

  header[role="banner"] .site-logo img {
    height: 38px;
    max-width: 138px;
  }

  header[role="banner"] .navbar-nav > .nav-item > .nav-link {
    padding: 0.62rem 0.8rem;
    font-size: 0.98rem;
  }

  header[role="banner"] .dropdown-item {
    padding: 0.58rem 1.15rem;
    font-size: 0.92rem;
  }
}


/* ==========================================================
   BASIC PAGE TEMPLATE
   Professional academic/editorial treatment for internal pages.
   Structure remains: title -> image -> text -> attachments.
   Header and footer are intentionally untouched.
   ========================================================== */

/* ----------------------------------------------------------
   Basic Page: page geometry
   ---------------------------------------------------------- */

@media (min-width: 992px) {
  .page-node-type-basic-page main > .container > .row.g-0 {
    display: grid;
    grid-template-columns: minmax(0, 800px) minmax(210px, 240px);
    column-gap: 2.5rem;
    justify-content: start;
    align-items: start;
    max-width: 1080px;
  }

  .page-node-type-basic-page main > .container > .row.g-0 > .col-lg-9,
  .page-node-type-basic-page main > .container > .row.g-0 > .col-lg-3 {
    width: auto;
    max-width: none;
  }
}

/* ----------------------------------------------------------
   Basic Page: title
   ---------------------------------------------------------- */

.page-node-type-basic-page #block-eurodoc-page-title h1 {
  max-width: 800px;
  margin-bottom: 1rem;
  color: var(--eurodoc-navy);
  font-size: clamp(2.25rem, 2.6vw, 2.7rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* ----------------------------------------------------------
   Basic Page: content flow
   ---------------------------------------------------------- */

.page-node-type-basic-page .node--type-basic-page .node__content {
  width: 100%;
  max-width: 800px;
}

/* Image is prominent but not a hero. */
.page-node-type-basic-page .node--type-basic-page .field--name-field-page-image {
  width: 100%;
  max-width: 800px;
  margin: 0 0 1rem;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-page-image .media,
.page-node-type-basic-page .node--type-basic-page .field--name-field-page-image .field--name-field-media-image,
.page-node-type-basic-page .node--type-basic-page .field--name-field-page-image .field__item {
  width: 100%;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-page-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0 !important;
}

/* ----------------------------------------------------------
   Basic Page: body typography
   ---------------------------------------------------------- */

.page-node-type-basic-page .node--type-basic-page .field--name-field-body {
  max-width: 760px;
  color: var(--eurodoc-text);
  font-size: 1rem;
  line-height: 1.62;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-body > :first-child {
  margin-top: 0;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-body > :last-child {
  margin-bottom: 0;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-body p {
  margin-bottom: 0.9rem;
  line-height: 1.62;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-body p:first-child {
  font-size: 1.04rem;
  line-height: 1.58;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-body strong {
  font-weight: 620;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-body ul,
.page-node-type-basic-page .node--type-basic-page .field--name-field-body ol {
  margin: 0.3rem 0 0.95rem;
  padding-left: 1.25rem;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-body li {
  margin-bottom: 0.2rem;
  padding-left: 0.08rem;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-body h2,
.page-node-type-basic-page .node--type-basic-page .field--name-field-body h3,
.page-node-type-basic-page .node--type-basic-page .field--name-field-body h4 {
  margin-top: 1.55rem;
  margin-bottom: 0.6rem;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-body h2 {
  font-size: clamp(1.55rem, 2vw, 1.9rem);
  line-height: 1.2;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-body h3 {
  font-size: 1.3rem;
  line-height: 1.25;
}

/* ----------------------------------------------------------
   Basic Page: attachments
   ---------------------------------------------------------- */

.page-node-type-basic-page .node--type-basic-page .field--name-field-attachments {
  max-width: 760px;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--eurodoc-border);
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-attachments > .field__label {
  margin-bottom: 0.35rem;
  color: var(--eurodoc-navy);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-attachments .field__items {
  margin: 0;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-attachments .field__item {
  margin-bottom: 0.25rem;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-attachments .file {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.4;
}

.page-node-type-basic-page .node--type-basic-page .field--name-field-attachments a {
  text-underline-offset: 0.14em;
}

/* ----------------------------------------------------------
   Basic Page: contextual section navigation
   Editorial / institutional treatment.
   ---------------------------------------------------------- */

.page-node-type-basic-page .region-sidebar-second {
  padding-top: 1.55rem;
  padding-left: 0;
}

.page-node-type-basic-page .region-sidebar-second > .block {
  width: 100%;
  max-width: 240px;
  margin: 0 0 1.25rem;
  padding: 0;
}

.page-node-type-basic-page .region-sidebar-second > .block:last-child {
  margin-bottom: 0;
}

/* Section heading */
.page-node-type-basic-page .region-sidebar-second .view-header {
  margin: 0;
  padding: 0 0 0.65rem;
  color: var(--eurodoc-navy);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  border-bottom: 1px solid var(--eurodoc-border);
}

/* Navigation rows */
.page-node-type-basic-page .region-sidebar-second .views-row {
  margin: 0;
  border-bottom: 1px solid var(--eurodoc-border);
}

.page-node-type-basic-page .region-sidebar-second .views-row:last-child {
  border-bottom: 0;
}

.page-node-type-basic-page .region-sidebar-second .views-field-title a {
  display: block;
  padding: 0.68rem 0;
  color: var(--eurodoc-blue);
  font-size: 0.95rem;
  font-weight: 450;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.15s ease;
}

.page-node-type-basic-page .region-sidebar-second .views-field-title a:hover,
.page-node-type-basic-page .region-sidebar-second .views-field-title a:focus {
  color: var(--eurodoc-blue-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.page-node-type-basic-page .region-sidebar-second .views-field-title a.is-active,
.page-node-type-basic-page .region-sidebar-second .views-field-title a[aria-current="page"] {
  color: var(--eurodoc-blue-dark);
  font-weight: 600;
}

/* ----------------------------------------------------------
   Basic Page: tablet and mobile
   ---------------------------------------------------------- */

@media (max-width: 991.98px) {
  .page-node-type-basic-page #block-eurodoc-page-title h1 {
    max-width: none;
  }

  .page-node-type-basic-page .node--type-basic-page .node__content {
    max-width: 760px;
  }

  .page-node-type-basic-page .node--type-basic-page .field--name-field-page-image {
    max-width: 100%;
  }

  .page-node-type-basic-page .region-sidebar-second {
    margin-top: 1.7rem;
    padding-top: 0;
    padding-left: 0;
  }
}

@media (max-width: 767.98px) {
  .page-node-type-basic-page #block-eurodoc-page-title h1 {
    margin-bottom: 0.85rem;
    font-size: clamp(2rem, 8vw, 2.45rem);
  }

  .page-node-type-basic-page .node--type-basic-page .field--name-field-page-image {
    max-width: 100%;
    margin-bottom: 0.85rem;
  }

  .page-node-type-basic-page .node--type-basic-page .field--name-field-body {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .page-node-type-basic-page .node--type-basic-page .field--name-field-body p,
  .page-node-type-basic-page .node--type-basic-page .field--name-field-body p:first-child {
    font-size: inherit;
    line-height: 1.6;
  }

  .page-node-type-basic-page .node--type-basic-page .field--name-field-attachments {
    max-width: 100%;
    margin-top: 1rem;
  }

  .page-node-type-basic-page .region-sidebar-second {
    margin-top: 1.5rem;
  }
}

/* ==========================================================
   BASIC PAGE — FINAL LAYOUT POLISH
   Only: composition centering, sidebar proximity, H1 measure.
   Header and footer are intentionally untouched.
   ========================================================== */

@media (min-width: 992px) {

  /* Centre the complete main-content + sidebar composition. */
  .page-node-type-basic-page main .row {
    justify-content: center;
  }

  /* Bring contextual navigation slightly closer to the article. */
  .page-node-type-basic-page main .row {
    --bs-gutter-x: 2rem;
  }

  /* Keep the title editorially narrower than the 800px banner. */
  .page-node-type-basic-page h1.page-title,
  .page-node-type-basic-page .page-title {
    max-width: 760px;
  }
}
