@import url("grid.css");
@import url("../../../contraste.css");

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/SourceSerif4-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --brand-900: #17324d;
  --brand-700: #245b86;
  --accent-green: #2b6b57;
  --accent-gold: #d6a33b;
  --surface: #ffffff;
  --surface-soft: #f7f4ee;
  --surface-muted-alt: #f4f7fa;
  --surface-muted: rgba(255, 255, 255, 0.08);
  --ink: #18222e;
  --ink-muted: #4d5b6a;
  --line-soft: rgba(23, 50, 77, 0.12);
  --line-strong: rgba(23, 50, 77, 0.22);
  --shadow-1: 0 18px 40px rgba(11, 26, 41, 0.08);
  --shadow-2: 0 28px 70px rgba(11, 26, 41, 0.16);
  --shadow-soft: 0 10px 28px rgba(12, 26, 40, 0.08);
  --panel-radius: 24px;
  --panel-radius-sm: 18px;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: min(1400px, calc(100vw - 2rem));
  --content-max: 76ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(214, 163, 59, 0.08), transparent 18%),
    linear-gradient(180deg, #edf2f6 0%, #f8f8f6 20rem, #f2f5f8 100%);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body,
input,
textarea,
select,
button {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--brand-900);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(214, 163, 59, 0.9);
  outline-offset: 3px;
}

::selection {
  background: rgba(214, 163, 59, 0.28);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#wrapper {
  position: relative;
  overflow: clip;
}

.header-inner {
  width: var(--container);
  margin: 0 auto;
}

.header-kicker,
.section-heading__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-kicker::before,
.section-heading__kicker::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: currentColor;
}

#accessibility {
  position: relative;
  z-index: 80;
}

#accessibility a {
  position: absolute;
  left: 1rem;
  top: -5rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-gold);
  color: var(--brand-900);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

#accessibility a:focus {
  top: 1rem;
}

#portal-header-shell {
  position: relative;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(23, 50, 77, 0.98) 0%, rgba(36, 91, 134, 0.96) 55%, rgba(43, 107, 87, 0.9) 100%);
  box-shadow: 0 18px 50px rgba(11, 26, 41, 0.12);
}

#portal-header-shell::before,
#portal-header-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

#portal-header-shell::before {
  width: 18rem;
  height: 18rem;
  top: -8rem;
  left: -5rem;
  background: rgba(214, 163, 59, 0.12);
}

#portal-header-shell::after {
  width: 22rem;
  height: 22rem;
  right: -8rem;
  bottom: -10rem;
  background: rgba(255, 255, 255, 0.08);
}

.header-utility,
.header-brandbar,
.header-navigation {
  position: relative;
  z-index: 1;
}

.header-utility {
  background: rgba(8, 18, 29, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-utility__inner,
.header-brandbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.header-utility__inner {
  padding: 0.8rem 0;
}

.header-utility__message {
  max-width: 40rem;
}

.header-utility__message p,
.header-brandbar__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.header-utility__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

#portal-siteactions,
#portal-siteactions ul,
#portal-personaltools,
#portal-personaltools ul,
#user ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

#portal-siteactions li,
#portal-personaltools li,
#portal-personaltools dd {
  margin: 0;
  list-style: none;
}

#portal-siteactions a,
#portal-personaltools a,
#siteactions li,
#user a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

#portal-siteactions a::before,
#portal-personaltools a::before,
#user a::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 0.25rem rgba(214, 163, 59, 0.18);
}

#portal-siteactions a:hover,
#portal-personaltools a:hover,
#user a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

#portal-personaltools,
#user {
  display: flex;
  align-items: center;
}

.header-brandbar {
  padding: clamp(1.3rem, 2.8vw, 2.6rem) 0;
}

.header-brandbar__inner {
  display: grid;
  grid-template-columns: auto minmax(18rem, 1fr) minmax(18rem, 25rem);
  align-items: center;
}

#portal-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 8.25rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

#portal-logo img {
  display: block;
  width: auto;
  max-width: min(100%, 30rem);
  max-height: 8.75rem;
}

.header-brandbar__copy {
  max-width: 34rem;
  padding: 0.5rem 0;
}

.header-brandbar__copy strong {
  display: block;
  margin-bottom: 0.8rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  color: #ffffff;
}

.header-search-slot {
  display: flex;
  justify-content: flex-end;
}

#portal-searchbox {
  width: min(100%, 25rem);
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

#portal-searchbox form,
#portal-searchbox .LSBox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

#portal-searchbox label {
  display: none;
}

#portal-searchbox input[type="text"],
#portal-searchbox input[type="search"],
#portal-searchbox .searchField {
  width: 100%;
  min-width: 0;
  height: 3.2rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 1rem;
  box-shadow: 0 10px 25px rgba(11, 26, 41, 0.08);
}

#portal-searchbox input[type="text"]::placeholder,
#portal-searchbox input[type="search"]::placeholder,
#portal-searchbox .searchField::placeholder {
  color: #6b7784;
}

.searchButton {
  height: 3.2rem;
  padding: 0 1.2rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-gold), #e2b558);
  color: var(--brand-900);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 10px 25px rgba(11, 26, 41, 0.14);
}

.searchButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(11, 26, 41, 0.18);
}

.header-navigation {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 18, 29, 0.24);
  backdrop-filter: blur(18px);
}

.header-navigation__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle__icon {
  position: relative;
  width: 1.3rem;
  height: 0.14rem;
  border-radius: 999px;
  background: currentColor;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.3rem;
  height: 0.14rem;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.menu-toggle__icon::before {
  top: -0.4rem;
}

.menu-toggle__icon::after {
  top: 0.4rem;
}

.menu-toggle.is-active .menu-toggle__icon {
  background: transparent;
}

.menu-toggle.is-active .menu-toggle__icon::before {
  transform: translateY(0.4rem) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__icon::after {
  transform: translateY(-0.4rem) rotate(-45deg);
}

#main-navigation {
  flex: 1 1 auto;
  min-width: 0;
}

#main-navigation ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#main-navigation li {
  margin: 0;
}

#main-navigation a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.97rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

#main-navigation li.selected a,
#main-navigation a:hover,
#main-navigation a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

#main-navigation a.is-external-link::after,
.footer-service-links a.is-external-link::after {
  content: "\2197";
  font-size: 0.82em;
  font-weight: 900;
  line-height: 1;
}

.breadcrumbs-shell {
  position: relative;
  padding: 1.1rem 0 0.9rem;
}

.breadcrumbs-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: calc(100% - 0.65rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.2));
  pointer-events: none;
}

#portal-breadcrumbs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: var(--panel-radius-sm);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-muted);
  font-size: 0.94rem;
  box-shadow: var(--shadow-soft);
}

#portal-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

#portal-breadcrumbs a:hover {
  color: var(--brand-700);
}

#breadcrumbs-you-are-here {
  color: var(--brand-900);
  font-weight: 700;
}

.section-front-page .breadcrumbs-shell {
  display: none;
}

#front-civic-links {
  display: none;
  padding: 1.4rem 0 1.25rem;
}

.section-front-page #front-civic-links {
  display: block;
  margin-top: -2.2rem;
  position: relative;
  z-index: 3;
}

.section-front-page #front-civic-links .header-inner {
  padding: clamp(1.4rem, 2.3vw, 2rem);
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-1);
}

.section-heading {
  display: grid;
  gap: 0.25rem;
  max-width: 42rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.08;
  color: var(--brand-900);
}

.section-heading p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.quicklinks-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.quicklink-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1.15rem 1.05rem 1.1rem;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: var(--panel-radius-sm);
  border-top: 4px solid rgba(36, 91, 134, 0.9);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.quicklink-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 1.7rem;
}

.quicklink-card:hover {
  color: var(--ink);
  transform: translateY(-3px);
  border-color: rgba(36, 91, 134, 0.18);
  box-shadow: 0 16px 36px rgba(12, 26, 40, 0.1);
}

.quicklink-card::after {
  content: "Acessar >";
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  color: var(--brand-700);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quicklink-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 1.65rem;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  background: rgba(23, 50, 77, 0.07);
  color: var(--brand-900);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quicklink-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--accent-gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.quicklink-card strong {
  display: block;
  font-size: 1.14rem;
  line-height: 1.14;
  color: var(--brand-900);
}

.quicklink-meta {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.main-shell {
  padding: 0.5rem 0 3.5rem;
}

#main {
  width: var(--container);
  margin: 0 auto;
  align-items: start;
}

#column-one,
#column-two {
  position: relative;
}

#content {
  max-width: none;
  padding: clamp(1.9rem, 2.8vw, 2.8rem);
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

#content > *:first-child {
  margin-top: 0;
}

.section-front-page #content {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.section-front-page #content > * {
  margin-top: 0;
  padding: clamp(1.45rem, 2vw, 1.9rem);
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: var(--panel-radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.section-front-page #content > :first-child:not(.cover-carousel-tile):not(.galleria) {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(23, 50, 77, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 247, 250, 1)),
    linear-gradient(135deg, rgba(214, 163, 59, 0.05), rgba(36, 91, 134, 0.02));
  box-shadow: 0 16px 42px rgba(12, 26, 40, 0.08);
}

.section-front-page #content > :first-child:not(.cover-carousel-tile):not(.galleria)::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 6rem;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-gold);
}

.section-front-page #content > :first-child:not(.cover-carousel-tile):not(.galleria) :is(h1, h2, h3, h4, p, li, span, strong, em) {
  position: relative;
  color: inherit;
}

.section-front-page #content > :first-child:not(.cover-carousel-tile):not(.galleria) a {
  position: relative;
  color: var(--brand-700);
}

.cover-carousel-tile,
.cover-carousel-tile .galleria-container,
.section-front-page #content > .cover-carousel-tile,
.section-front-page #content > .galleria {
  overflow: hidden;
  padding: 0;
  border: none;
  border-radius: var(--radius-xl);
  background: transparent;
  box-shadow: var(--shadow-2);
}

#content a,
#content a:visited {
  color: var(--brand-700);
}

#content a:hover,
dl.portlet a:hover {
  color: var(--brand-900) !important;
}

#content p,
#content li {
  max-width: var(--content-max);
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.documentFirstHeading {
  margin: 0 0 0.75rem;
  color: var(--brand-900);
  line-height: 1.12;
}

h1,
.documentFirstHeading {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

h4,
h5,
h6 {
  font-size: 1.05rem;
}

#content .documentDescription,
#content #description {
  margin-bottom: 1.3rem;
  color: var(--ink-muted);
  font-size: 1.14rem;
  line-height: 1.5;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1.2rem 1.3rem;
  border-left: 4px solid var(--brand-700);
  border-radius: 0 var(--panel-radius-sm) var(--panel-radius-sm) 0;
  background: linear-gradient(180deg, rgba(36, 91, 134, 0.05), rgba(36, 91, 134, 0.09));
  color: var(--ink);
}

code,
pre {
  font-family: Consolas, "Courier New", monospace;
}

pre {
  overflow: auto;
  padding: 1rem 1.2rem;
  border-radius: var(--panel-radius-sm);
  background: #0f2234;
  color: #f6f8fa;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  background: #ffffff;
  border: 1px solid rgba(23, 50, 77, 0.1);
  border-radius: var(--panel-radius-sm);
  overflow: hidden;
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(23, 50, 77, 0.1);
  text-align: left;
}

th {
  background: rgba(23, 50, 77, 0.04);
  color: var(--brand-900);
}

tr:last-child td {
  border-bottom: none;
}

input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  max-width: 100%;
  border: 1px solid rgba(23, 50, 77, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input[type="submit"],
input[type="button"],
button,
.tile-footer a,
.documentActions a {
  font: inherit;
}

.tile-header h2,
.tile-content h2 {
  margin-bottom: 0.75rem;
}

.tile-noticias,
.collection-tile,
.tile-collection {
  display: grid;
  gap: 1.2rem;
}

.tile-noticias .collection-item,
.tile-collection .collection-item {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.1rem;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: var(--panel-radius-sm);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 8px 18px rgba(12, 26, 40, 0.05);
}

.tile-noticias .collection-item a img,
.tile-collection .collection-item a img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.tile-noticias .collection-item > a,
.tile-collection .collection-item > a {
  display: block;
}

#content .tile-noticias .tile-footer a,
#content .tile-collection .tile-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-700), var(--accent-green));
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

#content .tile-noticias .tile-footer a:hover,
#content .tile-collection .tile-footer a:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--brand-900), var(--accent-green));
}

.collection-gallery,
.parliament-gallery-shell .tile-collection,
.parliament-gallery-shell .collection-tile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.parliament-gallery-shell {
  position: relative;
  padding: clamp(1.6rem, 2.5vw, 2.3rem);
  border: 1px solid rgba(23, 50, 77, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, #ffffff, #f7fafc),
    linear-gradient(135deg, rgba(36, 91, 134, 0.03), rgba(214, 163, 59, 0.05));
  box-shadow: 0 16px 40px rgba(12, 26, 40, 0.08);
}

.parliament-gallery-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 5rem;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-gold);
  transform: translateX(-50%);
}

.parliament-gallery-shell > :first-child {
  margin-top: 0;
}

#content .parliament-gallery-shell h1,
#content .parliament-gallery-shell h2,
#content .parliament-gallery-shell h3,
#content .parliament-gallery-shell .documentFirstHeading {
  margin-bottom: 1.75rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--brand-900);
}

.collection-gallery .collection-item,
.parliament-gallery-shell .collection-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 12px 28px rgba(12, 26, 40, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.collection-gallery .collection-item:hover,
.parliament-gallery-shell .collection-item:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 91, 134, 0.16);
  box-shadow: 0 18px 36px rgba(12, 26, 40, 0.11);
}

.collection-gallery .collection-item > a:first-child,
.parliament-gallery-shell .collection-item > a:first-child {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(233, 239, 244, 0.92)),
    linear-gradient(180deg, #f4f7fa, #e9eff4);
}

.collection-gallery .collection-item > a:first-child::after,
.parliament-gallery-shell .collection-item > a:first-child::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(14, 29, 44, 0), rgba(14, 29, 44, 0.05));
  pointer-events: none;
}

.collection-gallery .collection-item a img,
.parliament-gallery-shell .collection-item a img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.collection-gallery .collection-item:hover a img,
.parliament-gallery-shell .collection-item:hover a img {
  transform: scale(1.03);
}

.collection-gallery .collection-item > a:not(:first-child),
.parliament-gallery-shell .collection-item > a:not(:first-child) {
  display: block;
  padding: 1.1rem 1rem 0.35rem;
  color: var(--brand-900);
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.collection-gallery .collection-item > a:not(:first-child):hover,
.parliament-gallery-shell .collection-item > a:not(:first-child):hover {
  color: var(--brand-700);
}

.collection-gallery .collection-item p,
.collection-gallery .collection-item .description,
.parliament-gallery-shell .collection-item p,
.parliament-gallery-shell .collection-item .description {
  max-width: none;
  margin: 0;
  padding: 0 1rem 1.15rem;
  color: var(--ink-muted);
  font-size: 0.93rem;
  line-height: 1.5;
  text-align: center;
}

.collection-gallery .collection-item h2,
.collection-gallery .collection-item h3,
.collection-gallery .collection-item h4,
.collection-gallery .collection-item .tileHeadline,
.parliament-gallery-shell .collection-item h2,
.parliament-gallery-shell .collection-item h3,
.parliament-gallery-shell .collection-item h4,
.parliament-gallery-shell .collection-item .tileHeadline {
  margin: 0;
  padding: 1.1rem 1rem 0.35rem;
  font-size: 1.05rem;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.collection-gallery .collection-item > *:last-child,
.parliament-gallery-shell .collection-item > *:last-child {
  margin-bottom: 0;
}

.portlet {
  margin: 0 0 1.35rem;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: var(--panel-radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.portletHeader,
dl.portlet dt.portletHeader {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid rgba(23, 50, 77, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: var(--brand-900);
}

.portletHeader > a,
.portlet .portletHeader > span:nth-child(2),
dl.portlet dt.portletHeader a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.45rem;
  padding: 1rem 1.2rem;
  color: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.portletHeader > a::before,
.portlet .portletHeader > span:nth-child(2)::before {
  content: "";
  width: 0.3rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--accent-gold);
  flex: none;
}

.portletHeader a:hover,
dl.portlet dt.portletHeader a:hover {
  color: var(--brand-900) !important;
}

.portletItem,
.portletFooter,
dl.portlet dd {
  margin: 0;
  padding: 0;
}

aside dl,
aside dd,
aside ul {
  margin: 0;
  padding: 0;
}

aside a {
  text-decoration: none;
}

.portletNavigationTree ul {
  margin: 0;
}

.portletNavigationTree .portletItem {
  padding: 0.95rem;
  background:
    linear-gradient(180deg, rgba(247, 250, 252, 0.96), rgba(243, 248, 252, 0.98));
}

.portletNavigationTree .navTree {
  display: grid;
  gap: 0.55rem;
}

.portletNavigationTree li {
  margin: 0;
  list-style: none;
}

.portletNavigationTree .navTree > .navTreeItem + .navTreeItem {
  border-top: none;
}

.portletNavigationTree .navTree .navTreeItem > div {
  position: relative;
}

.portletNavigationTree .navTree .navTreeItem img,
.portletNavigationTree .navTree .navTreeItem .contenttype-folder-icon,
.portletNavigationTree .navTree .navTreeItem .contenttype-document-icon {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  display: none !important;
}

.portletNavigationTree .navTree .navTreeItem a,
.portletNavigationTree .navTree .navTreeItem a span {
  background-image: none !important;
}

.portletNavigationTree .navTree .navTreeItem a {
  position: relative;
  display: grid;
  grid-template-columns: 1.95rem minmax(0, 1fr);
  align-items: center;
  gap: 0.95rem;
  min-height: 3.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 6px 18px rgba(12, 26, 40, 0.04);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.portletNavigationTree .navTree .navTreeItem a::before {
  content: "";
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 14px;
  background-color: rgba(36, 91, 134, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 4.75h5.7L18 9.05V18.3c0 .97-.78 1.75-1.75 1.75h-8.5C6.78 20.05 6 19.27 6 18.3V6.5c0-.97.78-1.75 1.75-1.75Z' stroke='%2317324D' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M13.5 4.9v3.3c0 .72.58 1.3 1.3 1.3h3.1' stroke='%2317324D' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9.2 12.2h5.6M9.2 15.3h4.2' stroke='%2317324D' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1rem 1rem;
  box-shadow: inset 0 0 0 1px rgba(36, 91, 134, 0.12);
  flex: none;
}

.portletNavigationTree .navTree .navTreeItem > div > a.navTreeFolderish::before,
.portletNavigationTree .navTree .navTreeItem.navTreeFolderish > div > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3.5 8.2V6.8C3.5 5.81 4.31 5 5.3 5H9l1.85 2.2h7.85c.99 0 1.8.81 1.8 1.8v1.2' stroke='%2317324D' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3.5 9.8C3.5 8.81 4.31 8 5.3 8h13.4c.99 0 1.8.81 1.8 1.8v7.4c0 .99-.81 1.8-1.8 1.8H5.3c-.99 0-1.8-.81-1.8-1.8V9.8Z' stroke='%2317324D' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.portletNavigationTree .navTree .navTreeItem > div > a span {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  grid-column: 2;
}

.portletNavigationTree .navTree .navTreeItem a:hover,
.portletNavigationTree .navTree .navTreeItem a:focus-visible,
.portletNavigationTree .navTree .navTreeItem.navTreeItemInPath > div > a,
.portletNavigationTree .navTree .navTreeItem a.navTreeCurrentItem {
  border-color: rgba(36, 91, 134, 0.16);
  background: linear-gradient(180deg, #ffffff, #f2f7fb);
  color: var(--brand-900);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 28px rgba(12, 26, 40, 0.08);
  transform: translateX(2px);
}

.portletNavigationTree .navTree .navTreeItem a.navTreeCurrentItem {
  color: var(--brand-900);
  font-weight: 800;
  background: linear-gradient(180deg, rgba(36, 91, 134, 0.1), rgba(36, 91, 134, 0.04));
}

.portletNavigationTree .navTree .navTreeItem.navTreeItemInPath > div > a::after,
.portletNavigationTree .navTree .navTreeItem a.navTreeCurrentItem::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2px solid rgba(36, 91, 134, 0.55);
  border-right: 2px solid rgba(36, 91, 134, 0.55);
  transform: translateY(-50%) rotate(45deg);
}

.portletNavigationTree .navTree .navTreeItem > ul {
  display: grid;
  gap: 0.5rem;
  margin: 0.45rem 0 0.1rem 1.25rem;
  padding: 0 0 0 0.85rem;
  border-left: 1px solid rgba(23, 50, 77, 0.12);
}

.navTreeLevel1 .navTreeItem a {
  min-height: 3rem;
  font-size: 0.95rem;
}

.navTreeLevel2 .navTreeItem a {
  min-height: 2.9rem;
  font-size: 0.93rem;
}

.navTreeLevel3 .navTreeItem a {
  min-height: 2.8rem;
  font-size: 0.92rem;
}

.navTreeLevel4 .navTreeItem a {
  min-height: 2.75rem;
  font-size: 0.9rem;
}

.portletHeader.is-collapsed::after {
  transform: rotate(-45deg);
}

#column-two .portlet {
  border-top: 4px solid rgba(43, 107, 87, 0.85);
}

#column-two .portletHeader,
#column-two dl.portlet dt.portletHeader {
  background: linear-gradient(180deg, #ffffff, #f7fbf9);
}

dl.portalMessage,
div.portalMessage {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--panel-radius-sm);
  border: 1px solid rgba(23, 50, 77, 0.1);
  box-shadow: 0 8px 18px rgba(11, 26, 41, 0.04);
}

dl.portalMessage.info,
div.portalMessage.info {
  background: rgba(36, 91, 134, 0.08);
}

dl.portalMessage.warning,
div.portalMessage.warning {
  background: rgba(214, 163, 59, 0.12);
}

dl.portalMessage.error,
div.portalMessage.error {
  background: rgba(164, 50, 50, 0.12);
}

#footer-total {
  position: relative;
  color: #ffffff;
  margin-top: 3rem;
  background: linear-gradient(180deg, #10263a 0%, #13304a 100%);
  overflow: hidden;
}

#footer-total::before {
  content: "";
  position: absolute;
  inset: auto -10rem -12rem auto;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgba(214, 163, 59, 0.1);
  filter: blur(8px);
  pointer-events: none;
}

.footer-main {
  padding: clamp(2.4rem, 4vw, 3.4rem) 0;
}

.footer-main__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 24rem);
  gap: 1.5rem 2rem;
  align-items: start;
}

#footer-info {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.7;
}

#footer-info a {
  color: #ffffff !important;
}

.footer-support__card {
  position: relative;
  padding: 1.55rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--panel-radius);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.footer-support__card strong {
  display: block;
  margin-bottom: 0.75rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.15;
}

.footer-support__card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.footer-service-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.footer-service-links a:hover,
.footer-service-links a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.footer-colophon-shell {
  position: relative;
  padding: 1rem 0;
  background: rgba(5, 11, 18, 0.32);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#footer-colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.78);
}

#footer-colophon a {
  color: #ffffff !important;
}

.colophon-item {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.colophon-logo img,
.colophon-item img {
  height: auto;
  max-height: 2rem;
}

.portlet:not(.portletNavigationTree) ul,
.portlet .portletItem > ul {
  list-style: none;
  margin: 0;
  padding: 0.3rem 0;
}

.portlet:not(.portletNavigationTree) li + li {
  border-top: 1px solid rgba(23, 50, 77, 0.08);
}

.portlet:not(.portletNavigationTree) li a {
  display: block;
  padding: 0.95rem 1.2rem;
  color: var(--ink);
  font-weight: 600;
}

.portlet:not(.portletNavigationTree) li a:hover {
  background: rgba(36, 91, 134, 0.05);
  color: var(--brand-900) !important;
}

.portlet .portletItem > p,
.portlet .portletItem > div,
.portlet .portletItem > .portlet-static {
  padding: 1rem 1.2rem 1.2rem;
}

.demo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  color: var(--brand-700);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-gold);
}

.demo-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.6rem 0 1.4rem;
}

.demo-stat-card {
  padding: 1.05rem 1.1rem;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: var(--panel-radius-sm);
  background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.demo-stat-card strong {
  display: block;
  color: var(--brand-900);
  font-size: 1.5rem;
  line-height: 1;
}

.demo-stat-card span {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.demo-card {
  padding: 1.2rem;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: var(--panel-radius-sm);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.demo-card h3 {
  margin-bottom: 0.5rem;
}

.demo-card p {
  margin-bottom: 0;
}

.demo-link-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.demo-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.demo-link-list a::after {
  content: ">";
  color: var(--brand-700);
  font-weight: 800;
}

.demo-link-list a:hover {
  color: var(--brand-900);
  border-color: rgba(36, 91, 134, 0.18);
  background: rgba(36, 91, 134, 0.03);
}

.demo-muted-box {
  padding: 1rem 1.1rem;
  border-radius: var(--panel-radius-sm);
  background: var(--surface-muted-alt);
  color: var(--ink-muted);
}

@media (min-width: 1024px) {
  .header-navigation {
    position: sticky;
    top: 0;
    z-index: 40;
  }

  #column-one .portletNavigationTree {
    position: sticky;
    top: 6.5rem;
  }
}

@media (max-width: 1480px) {
  .quicklinks-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .header-brandbar__inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .header-search-slot {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  #portal-searchbox {
    width: 100%;
  }

  .quicklinks-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .header-utility__inner,
  .header-brandbar__inner,
  .footer-main__inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .header-utility__actions {
    justify-content: flex-start;
  }

  .header-brandbar__copy {
    max-width: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  #main-navigation ul {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }

  #main.layout-has-left #column-one {
    display: none;
  }

  body.nav-open #main.layout-has-left #column-one {
    display: block;
  }

  #column-one {
    order: 0;
  }

  #main-content {
    order: 1;
  }

  #column-two {
    order: 2;
  }

  #column-one .portletNavigationTree .portletHeader {
    cursor: pointer;
  }

  #column-one .portletNavigationTree .portletHeader::after {
    content: "";
    position: absolute;
    top: 1.45rem;
    right: 1.2rem;
    width: 0.65rem;
    height: 0.65rem;
    border-right: 2px solid rgba(23, 50, 77, 0.72);
    border-bottom: 2px solid rgba(23, 50, 77, 0.72);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .quicklinks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-stat-row,
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  :root {
    --container: min(1280px, calc(100vw - 1.2rem));
  }

  .header-brandbar {
    padding-top: 1rem;
  }

  #portal-logo {
    width: 100%;
    min-height: 0;
  }

  #portal-logo img {
    max-height: 6.4rem;
  }

  #portal-searchbox,
  #portal-searchbox form,
  #portal-searchbox .LSBox {
    grid-template-columns: 1fr;
  }

  .searchButton {
    width: 100%;
  }

  #portal-breadcrumbs {
    border-radius: var(--radius-md);
  }

  #content {
    padding: 1.2rem;
    border-radius: var(--radius-lg);
  }

  .tile-noticias .collection-item,
  .tile-collection .collection-item {
    grid-template-columns: 1fr;
  }

  .collection-gallery,
  .parliament-gallery-shell .tile-collection,
  .parliament-gallery-shell .collection-tile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-front-page #front-civic-links {
    margin-top: -1.35rem;
  }

  #footer-colophon {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .quicklinks-grid {
    grid-template-columns: 1fr;
  }

  .collection-gallery,
  .parliament-gallery-shell .tile-collection,
  .parliament-gallery-shell .collection-tile {
    grid-template-columns: 1fr;
  }

  #portal-siteactions,
  #portal-personaltools,
  #portal-personaltools ul {
    justify-content: flex-start;
  }

  #main-navigation a {
    padding-inline: 0.85rem;
  }

  .footer-service-links {
    align-items: stretch;
    flex-direction: column;
  }
}
