/**
 * rodriguez-graham.css  (v2 — consolidated + responsive)
 * Custom overrides for the xarapro theme — rodriguez-graham.com
 * -----------------------------------------------------------------------
 * Structure
 *   0. Design tokens
 *   1. Base & typography
 *   2. Header
 *   3. Menus
 *   4. Layout (sidebar, main, page gutters)
 *   5. Works gallery
 *   6. Page types (exhibitions, CV, about, press, work, user, node)
 *   7. Registry table (team only)
 *   8. Forms
 *   9. Responsive — tablet & phone (<= 991px), phone (<= 600px)
 *
 * Breakpoints (CSS can't read variables inside @media, so they live here):
 *   desktop  >= 992px   fixed header + fixed left sidebar
 *   tablet   <= 991px   static header, stacked layout, 16px gutters
 *   phone    <= 600px   2-column gallery, 1-column exhibitions
 * -----------------------------------------------------------------------
 */

/* =====================================================================
   0. DESIGN TOKENS
   One value per idea. Change here, changes everywhere.
   ===================================================================== */
:root {
  --rg-ink:       #1c1c1a;   /* text, active states, strong rules      */
  --rg-ink-soft:  #6b6b65;   /* secondary text, inactive links         */
  --rg-line:      #afafaf;   /* input borders, dashed row rules        */
  --rg-hairline:  #e0e0e0;   /* thumbnail borders, quiet fills         */

  --rg-font: 'Roboto', 'Helvetica Neue', sans-serif;

  --rg-menu-gap:   1.5rem;   /* between menu items                     */
  --rg-tracking:   0.1em;    /* letter-spacing on uppercase labels     */
  --rg-gutter:     calc(10% + 10px);  /* side margin on no-sidebar pages —
                                         lines up with logo + nav       */
  --rg-gutter-sm:  16px;     /* side margin on tablet / phone          */
  --rg-header-h:   calc(var(--header-height, 75px) + var(--drupal-displace-offset-top, 0px));
                             /* real header height (set by
                                rodriguez-graham.js) + admin toolbar    */
}

/* =====================================================================
   1. BASE & TYPOGRAPHY — Roboto
   ===================================================================== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: transparent !important;
  font-weight: 300;           /* theme ships 300/400/700 (+600 below) */
}

/* The theme only ships 300/400/700; add 600 so semi-bold rules render
   instead of silently falling back. Only 300/400/600/700 are used. */
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/roboto6.woff2") format("woff2");
}

body,
.menu-item a,
.views-field a,
.block-title,
.page-title,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rg-font) !important;
}

.views-field.views-field-title {
  font-weight: 400 !important;
  font-style: italic !important;
}

/* "Untitled" is not a title: roman, not italic (class added in xarapro.theme) */
.rg-untitled,
.rg-untitled * {
  font-style: normal;
}

.page-title {
  text-transform: uppercase !important;
  font-size: 1.5em !important;
  font-weight: 400 !important;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  line-height: 1.2 !important;
}

.page-title-wrap {
  border-bottom: none !important;
  padding-bottom: 0.5rem !important;
}

.block-title {
  text-decoration: none !important;
  font-size: 1.2em !important;
  text-transform: uppercase !important;
  padding-bottom: 0 !important;
  margin-bottom: 5px !important;
  font-weight: 400 !important;
  text-align: left !important;
}

/* Remove the two-tone dash the base theme draws under every block title */
.block-title::before,
.block-title::after {
  display: none !important;
}

/* Vertical rhythm between stacked blocks (e.g. CV sections) */
.region-content .block {
  margin-bottom: 20px !important;
}

#block-xarapro-page-title {
  margin-bottom: 0 !important;
}

/* No underlines anywhere in navigation */
.menu-item a,
.menu-item a:hover,
.menu-item a:focus,
.menu-item a:visited,
.header-top a,
.header-top a:hover {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* =====================================================================
   2. HEADER — logo left, fixed on desktop
   ===================================================================== */
header.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-height: 0 !important;
  z-index: 1000 !important;
}

.site-branding {
  height: 60px !important;
}

.site-logo {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  height: 42px !important;        /* real size (was 60px scaled to 70%): a transform keeps the
                                     unscaled 60px width in layout, which pushed the menu past
                                     the right edge of the page grid */
  margin-top: 18px !important;
  transform: none !important;
}

.site-logo img {
  height: 42px !important;
  width: auto !important;
  max-width: none !important;     /* theme's img{max-width:100%} + flex shrink squeezed the wordmark */
  flex: 0 0 auto !important;
  object-fit: contain !important; /* never distort, whatever the box does */
}

/* The theme's sticky-header JS must not inflate the fixed header */
.header-main,
.header-main.header-sticky,
.header-main.sticky-header,
.sticky-header-height {
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.header-main .container {
  max-width: 100% !important;
  width: 100% !important;
}

.header-container .site-brand {
  width: 100% !important;
  margin-right: 0 !important;
  flex: 1 !important;
}

.header-top .container {
  max-width: 80% !important;
  width: 80% !important;
}

.header-top-container {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;       /* if logo + menu don't fit, the menu drops below instead of overflowing */
  justify-content: space-between !important;
  align-items: flex-end !important;
}

.header-top-left,
.header-top-right {
  min-width: 0 !important;
  max-width: 100% !important;
}

.header-top-right {
  margin-left: auto !important;     /* stays flush with the grid's right edge */
}

.header-top-right nav ul.menu {
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
}

/* =====================================================================
   3. MENUS
   Every horizontal menu shares one base; only the label style differs.
   ===================================================================== */

/* 3a. Base — horizontal, unbulleted, evenly spaced */
.menu-public-menu .menu,
.menu-team-menu .menu,
.menu-obra-sub-menu .menu,
.menu-contenido-nuevo .menu,
#block-xarapro-useraccountmenu .menu,
#block-xarapro-userlogout-menu ul,
#block-xarapro-userlogout-menu ol,
#block-xarapro-userloginform .menu {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: var(--rg-menu-gap) !important;
}

.menu-public-menu .menu-item,
.menu-team-menu .menu-item,
.menu-obra-sub-menu .menu-item,
.menu-contenido-nuevo .menu-item,
#block-xarapro-useraccountmenu .menu-item,
#block-xarapro-userlogout-menu li,
#block-xarapro-userloginform .menu-item {
  list-style: none !important;
}

/* 3b. Team / utility menus — pushed to the right edge */
.menu-team-menu .menu,
.menu-obra-sub-menu .menu,
.menu-contenido-nuevo .menu,
#block-xarapro-useraccountmenu .menu,
#block-xarapro-userlogout-menu ul,
#block-xarapro-userlogout-menu ol,
#block-xarapro-userloginform .menu {
  justify-content: flex-end !important;
}

#block-xarapro-teammenu,
#block-xarapro-obrasubmenu,
#block-xarapro-contenidonuevo,
#block-xarapro-useraccountmenu,
#block-xarapro-userlogout-menu,
#block-xarapro-userloginform {
  width: 100% !important;
  display: flex !important;
  justify-content: flex-end !important;
}

#block-xarapro-obrasubmenu,
#block-xarapro-useraccountmenu,
#block-xarapro-userlogout-menu,
#block-xarapro-userloginform,
.menu-obra-sub-menu {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.menu-obra-sub-menu,
#block-xarapro-obrasubmenu {
  align-self: flex-start !important;
}

/* 3c. Labels — uppercase + tracking everywhere */
.menu-public-menu .menu-item a,
.menu-team-menu .menu-item a,
.menu-obra-sub-menu .menu-item a,
.menu-contenido-nuevo .menu-item a,
#block-xarapro-useraccountmenu .menu-item a,
#block-xarapro-userlogout-menu a,
#block-xarapro-userloginform .menu-item a {
  text-transform: uppercase !important;
  letter-spacing: var(--rg-tracking) !important;
}

/* Public menu is the only bold one */
.menu-public-menu .menu-item a {
  font-weight: 700 !important;
}

/* Secondary menus — smaller, muted */
.menu-obra-sub-menu .menu-item a,
.menu-contenido-nuevo .menu-item a,
#block-xarapro-useraccountmenu .menu-item a,
#block-xarapro-userlogout-menu a,
#block-xarapro-userloginform .menu-item a {
  font-size: 0.8em !important;
  color: var(--rg-ink-soft) !important;
}

/* Primary-menu region spacing (theme region, unused on the public site) */
.block-region.region-primary-menu,
.region-primary-menu {
  padding: 2px !important;
}

.region-primary-menu,
.primary-menu-wrapper,
.menu-wrap {
  gap: 0.1rem !important;
}

/* Theme's sliding-sidebar icon — keep visible if a block ever renders it */
.sliding-sidebar-menu,
.sliding-sidebar-icon {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* =====================================================================
   4. LAYOUT — sidebar, main, page gutters
   ===================================================================== */

/* Clear the fixed header using its measured height (+ admin toolbar) */
.main-wrapper {
  padding-top: var(--rg-header-h) !important;
}

.main-wrapper .container,
.main-wrapper > .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.main-container {
  width: 100%;
  padding-top: 0 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.main-container .node-content {
  align-items: center;
}

/* Left sidebar (works year list): fixed, 15% of the viewport */
#sidebar-left {
  position: fixed !important;
  left: 0 !important;
  top: var(--rg-header-h) !important;
  width: calc(15% - 30px) !important;
  min-width: calc(15% - 30px) !important;
  z-index: 10 !important;
  padding: 85px 0 0 10px !important;
  text-align: left !important;
}

#sidebar-left:empty,
#sidebar-left:not(:has(> *)) {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
}

#sidebar-left .block-title {
  display: none !important;
}

#sidebar-left .block,
#sidebar-left .block-content,
#sidebar-left .views-element-container {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.block-views-blockworks-block-1 {
  padding-top: 40px !important;
}

#sidebar-left .views-field-field-year-finished {
  text-align: right !important;
  padding-right: 5px;
}

/* Year links: muted by default, ink + semi-bold for the active year */
#sidebar-left .views-field a,
#sidebar-left .views-field-field-year-finished a {
  font-family: var(--rg-font) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--rg-ink-soft) !important;
  display: block !important;
  padding: 2px 0 !important;
  text-decoration: none !important;
}

#sidebar-left .views-field a:hover {
  color: var(--rg-ink) !important;
}

#sidebar-left .works-year-menu .year-menu-button.active-year a {
  font-weight: 600 !important;
  color: var(--rg-ink) !important;
}

/* Main region sits to the right of the sidebar */
.block-region.region.region-content {
  display: block !important;
  margin-left: 15% !important;
  margin-right: 40px !important;
  width: auto !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#block-xarapro-content {
  max-width: 90% !important;
  text-align: left;
  align-items: center !important;
}

/* Pages WITHOUT a sidebar line their content up with the logo and nav
   (the header's 80% container) instead of reserving the sidebar's 15%.
   NB: "/" and "/exhibitions" carry body.homepage, not path-exhibitions. */
body.homepage .block-region.region.region-content,
body.path-contact .block-region.region.region-content,
body.path-cv .block-region.region.region-content,
body.path-press .block-region.region.region-content,
body.path-texts .block-region.region.region-content,
body.path-about .block-region.region.region-content {
  margin-left: var(--rg-gutter) !important;
  margin-right: var(--rg-gutter) !important;
  text-align: left !important;
}

body.homepage #block-xarapro-content,
body.path-contact #block-xarapro-content,
body.path-cv #block-xarapro-content,
body.path-press #block-xarapro-content,
body.path-texts #block-xarapro-content,
body.path-about #block-xarapro-content {
  max-width: 100% !important;
}

/* Works page: gallery starts level with the sidebar */
.path-works .main-wrapper {
  margin-top: 0 !important;
}

.path-works .highlighted,
body.homepage .highlighted,
body.homepage .dialog-off-canvas-main-canvas > .highlighted {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* =====================================================================
   5. WORKS GALLERY — 4-column grid, hover image swap per cell
   ===================================================================== */
.works-gallery {
  max-width: 100% !important;
}

.works-gallery .view-content {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-auto-flow: dense !important;
  gap: 10px !important;
  padding-top: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Each cell is itself a grid so both image fields share the same area */
.works-gallery .views-row {
  grid-column: span 1;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr auto !important;
  border: 1px solid var(--rg-hairline) !important;
  overflow: hidden !important;
  position: relative !important;
}

.works-gallery .views-row.is-wide {
  grid-column: span 2 !important;
}

/* Primary image — sets the row height, fades out on hover */
.works-gallery .views-field-field-imagen-a-muro {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  align-self: end !important;
  z-index: 1 !important;
  transition: opacity 0.25s ease !important;
}

.works-gallery .views-row.has-hover-image:hover .views-field-field-imagen-a-muro {
  opacity: 0 !important;
}

/* Hover image — absolutely positioned over the primary, no layout effect */
.works-gallery .views-field-field-work-image-1 {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  opacity: 0 !important;
  transition: opacity 0.25s ease !important;
  pointer-events: none !important;
  z-index: 2 !important;
  overflow: hidden !important;
}

.works-gallery .views-row:hover .views-field-field-work-image-1 {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.works-gallery .views-field-title {
  grid-column: 1 !important;
  grid-row: 2 !important;
  position: relative !important;
  z-index: 3 !important;
}

/* Image wrappers */
.works-gallery .views-field-field-imagen-a-muro .field-content,
.works-gallery .views-field-field-work-image-1 .field-content {
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: block !important;
}

.works-gallery .views-field-field-imagen-a-muro .field-content {
  height: auto !important;
}

.works-gallery .views-field-field-work-image-1 .field-content {
  height: 100% !important;
}

.works-gallery .views-field-field-imagen-a-muro .field-content a,
.works-gallery .views-field-field-work-image-1 .field-content a {
  display: block !important;
  width: 100% !important;
  line-height: 0 !important;
}

.works-gallery .views-field-field-work-image-1 .field-content a {
  height: 100% !important;
}

.works-gallery .views-field-field-imagen-a-muro img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  display: block !important;
  border: none !important;
}

.works-gallery .views-field-field-work-image-1 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: 100% !important;
  display: block !important;
  border: none !important;
}

/* No primary image: the hover image becomes the layout source */
.works-gallery .views-field-field-imagen-a-muro .field-content:empty {
  display: none !important;
}

.works-gallery .views-row:has(.views-field-field-imagen-a-muro .field-content:empty) .views-field-field-work-image-1 {
  position: relative !important;
  inset: auto !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.works-gallery .views-row:has(.views-field-field-imagen-a-muro .field-content:empty) .views-field-field-work-image-1 .field-content,
.works-gallery .views-row:has(.views-field-field-imagen-a-muro .field-content:empty) .views-field-field-work-image-1 .field-content a,
.works-gallery .views-row:has(.views-field-field-imagen-a-muro .field-content:empty) .views-field-field-work-image-1 img {
  height: auto !important;
}

.works-gallery .views-row:has(.views-field-field-imagen-a-muro .field-content:empty) .views-field-field-work-image-1 img {
  object-fit: initial !important;
}

/* Hide the row when BOTH image fields are empty */
.works-gallery .views-row:has(.views-field-field-imagen-a-muro .field-content:empty):has(.views-field-field-work-image-1 .field-content:empty) {
  display: none !important;
}

/* Work titles — gallery and node views */
.works-gallery .views-field-title,
body.path-node .views-field-title {
  font-size: 1.3em !important;
  font-weight: 700 !important;
}

/* =====================================================================
   6. PAGE TYPES
   ===================================================================== */

/* ---- 6a. Exhibitions (homepage) ---------------------------------- */
.view-website-exhibitions {
  font-size: 0.9em;
  line-height: 105%;
}

.view-website-exhibitions .views-view-responsive-grid--horizontal {
  grid-template-columns: repeat(3, 1fr) !important;
}

body.homepage .views-view-responsive-grid--horizontal {
  gap: 13px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.view-website-exhibitions img.image-field {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

.view-website-exhibitions .views-field-title {
  text-transform: uppercase !important;
  padding-top: 20px;
  font-size: 1em !important;
  font-weight: 700 !important;
}

.view-website-exhibitions .views-field-field-type {
  font-size: 0.8em !important;
  font-weight: 300 !important;
}

.field-content.Titulo-Obra {
  text-transform: uppercase !important;
  font-weight: 400 !important;
}

/* ---- 6b. CV (view fields) ---------------------------------------- */
/* .CV is shared by every display of this view — scope to page_1 */
.CV.view-display-id-page_1 {
  padding-top: 40px !important;
}

.field-content.CV-Name {
  font-size: 1.5em !important;
  font-weight: 400 !important;
}

.field-content.Born {
  font-size: 1.5em !important;
  font-weight: 300 !important;
}

.field-content.Exhibition-Title {
  font-weight: 400 !important;
}

/* ---- 6c. About --------------------------------------------------- */
/* Portrait and bio are sibling blocks: floating the portrait lets the
   statement wrap around it. */
.About-Portrait {
  float: left !important;
  margin-right: 30px !important;
  padding-bottom: 20px !important;   /* lets the Statement fully clear it */
}

/* Captions: right-aligned to the image edge, small */
.About-Portrait .views-field-title,
.Statement-Block .views-field-title {
  font-size: 0.8em !important;
  text-align: right !important;
}

.Statement-Block .views-field-title {
  font-weight: 300 !important;
}

/* The float collapses its wrapper; drop the sitewide block gap so the
   Statement title lines up with the top of the image. */
body.path-about #block-xarapro-content {
  margin-bottom: 0 !important;
}

/* Divider above the whole BIO block, clears the floated portrait */
#block-xarapro-views-block-about-block-2 {
  clear: both !important;
  border-top: 1px solid var(--rg-ink) !important;
  padding-top: 40px !important;
  margin-top: 60px !important;
  text-align: left !important;
}

.views-field:has(.Full-CV-Link) {
  text-align: right !important;
}

/* ---- 6d. Press / Texts ------------------------------------------- */
.views-field-field-imagen-documento img {
  max-height: 300px !important;
  width: auto !important;
}

/* Image floats left; text fields flow beside it at natural height */
.view-id-press .views-field-field-imagen-documento {
  float: left !important;
  margin-right: 30px !important;
}

.view-id-press .views-row {
  padding-bottom: 20px !important;
}

.view-id-press .views-row::after {
  content: "";
  display: block !important;
  clear: both !important;
}

.field-content.Titulo-Prensa,
.field-content.Autor-Prensa,
.field-content.Medio-Prensa,
.field-content.Fecha-Prensa {
  font-size: 1.2em !important;
}

/* Title / author / outlet (and the PDF link below) share one tight line
   height; the date keeps the site's normal one. */
.field-content.Titulo-Prensa,
.field-content.Autor-Prensa,
.field-content.Medio-Prensa {
  line-height: 1.1 !important;
}

.field-content.Titulo-Prensa,
.field-content.Medio-Prensa {
  font-weight: 400 !important;
}

.field-content.Fecha-Prensa {
  padding-bottom: 10px !important;
}

.views-field-field-resumen-abstracto,
.field-content.Abstracto-Texto {
  float: none !important;
  display: block !important;
  padding-top: 10px !important;
}

.field-content.Attribution-Text {
  display: block !important;
  text-align: right !important;
  padding-bottom: 10px !important;
}

/* Content has hard-coded <br>s from a narrower layout: keep only the last */
.field-content.Abstracto-Texto br:not(:last-of-type) {
  display: none !important;
}

/* PDF link: keep the real <a href> but show "View PDF" instead of the
   filename (font-size 0 hides the text; ::after uses rem since em of 0
   would also vanish). */
.views-field-field-pdf-documento {
  text-align: right !important;
  font-size: 0.8em !important;
}

.views-field-field-pdf-documento .file a {
  font-size: 0 !important;
  line-height: 1.1 !important;
}

.views-field-field-pdf-documento .file a::after {
  content: "View PDF";
  font-size: 0.9rem;
  font-weight: 400;
}

/* ---- 6e. Work detail — image left, text right -------------------- */
body.path-node .block-region.region.region-content:has(.view-id-work) {
  width: 80% !important;
  max-width: 80% !important;
}

/* The title is already shown by the view — hide the generic page title */
body.page-type-obra .page-title-wrap {
  display: none !important;
}

.view-id-work {
  width: 100% !important;
  max-width: 100% !important;
}

.view-id-work .views-row {
  display: grid !important;
  grid-template-columns: auto auto !important;
  grid-template-rows: repeat(4, auto) 1fr !important;
  column-gap: 30px !important;
  row-gap: 0 !important;
  align-items: start !important;
  align-content: start !important;
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.view-id-work .views-field-field-work-image {
  grid-column: 1 !important;
  grid-row: 1 / -1 !important;
  margin-top: 2px !important;
  border: 1px solid var(--rg-hairline) !important;
}

.view-id-work .views-field-title,
.view-id-work .views-field-field-support,
.view-id-work .views-field-field-width,
.view-id-work .views-field-field-year-finished {
  grid-column: 2 !important;
  align-self: start !important;
  font-size: 0.9em !important;
  max-width: none !important;
  white-space: normal !important;
}

.view-id-work .views-field-title {
  padding-top: 10px !important;
  line-height: 1em;
}

/* ---- 6f. Login page ---------------------------------------------- */
body.path-user .main-container {
  padding-top: calc(var(--rg-header-h) + 25px) !important;
}

body.path-user .block-region.region.region-content {
  margin-left: 0 !important;
  text-align: left !important;
}

/* ---- 6g. Node add / edit / view ---------------------------------- */
body.path-node .main-wrapper {
  padding-top: calc(var(--rg-header-h) + 20px) !important;
}

body.path-node .block-region.region.region-content {
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
}

body.path-node .page-title-wrap {
  padding-top: 50px !important;
  text-align: left !important;
  width: 100% !important;
}

body.path-node .page-title {
  text-align: left !important;
  width: 100% !important;
  padding-bottom: 10px !important;
  margin-bottom: 0 !important;
}

/* The image field defines the column width */
body.path-node .views-field-field-imagen-a-muro,
body.path-node .field--name-field-imagen-a-muro {
  display: block !important;
  border: 1px solid var(--rg-hairline) !important;
}

.node-submitted-details {
  display: none !important;
}

/* Keep edit-form fields from scrolling under the fixed header */
#edit-field-work-image-wrapper,
.node-form #edit-field-work-image-wrapper {
  scroll-margin-top: 160px !important;
  padding-top: 20px !important;
}

/* =====================================================================
   7. REGISTRY TABLE (team only)
   ===================================================================== */
.obra-table {
  display: block !important;
  width: fit-content !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

table.cols-7 {
  table-layout: auto !important;
  width: auto !important;
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
}

table.cols-7 td,
table.cols-7 th {
  padding: 5px !important;
  vertical-align: middle !important;
  width: 1% !important;
  white-space: nowrap !important;
}

table.cols-7 thead tr th {
  text-transform: uppercase !important;
  font-weight: 700 !important;
  font-size: 0.8em !important;
  padding: 0 5px !important;
  line-height: 1 !important;
  height: 20px !important;
  max-height: 20px !important;
  overflow: hidden !important;
  border-bottom: 1px dashed var(--rg-ink) !important;
}

table.cols-7 tbody tr td {
  padding-top: 5px !important;
  padding-bottom: 15px !important;
}

table.cols-7 tbody tr:not(:last-child) td {
  border-bottom: 1px dashed var(--rg-line) !important;
}

table.cols-7 .views-field-field-work-image {
  width: 1% !important;
  white-space: nowrap !important;
}

table.cols-7 .views-field-field-work-image img {
  height: 120px !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
}

table.cols-7 .views-field-title {
  white-space: normal !important;
  width: auto !important;
  min-width: 150px !important;
  font-weight: 700 !important;
  font-size: 0.9em;
}

table.cols-7 .views-field-field-support {
  white-space: normal !important;
  width: auto !important;
}

table.cols-7 .views-field-field-support,
table.cols-7 .views-field-field-width,
table.cols-7 .views-field-field-year-finished {
  font-size: 0.8em !important;
}

/* Catalog number — rotated, fixed width */
table.cols-7 tbody .views-field-field-numero-de-catalogo {
  width: 50px !important;
  max-width: 50px !important;
  height: 120px !important;
  text-align: center !important;
  vertical-align: middle !important;
  overflow: visible !important;
  position: relative !important;
  font-size: 0.9em !important;
  font-weight: 700 !important;
}

table.cols-7 .views-field-field-numero-de-catalogo a {
  display: inline-block !important;
  white-space: nowrap !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translateX(-50%) translateY(-50%) rotate(270deg) !important;
}

table.cols-7 td.views-field-edit-node,
table.cols-7 th.views-field-edit-node {
  text-align: center !important;
  vertical-align: middle !important;
}

table.cols-7 td.views-field-edit-node a {
  color: var(--rg-ink) !important;
  background-color: var(--rg-hairline) !important;
  border-radius: 4px !important;
  display: block !important;
  margin: 0 auto !important;
  width: fit-content !important;
  padding: 0 20px !important;
  transform: rotate(270deg) !important;
  white-space: nowrap !important;
}

/* =====================================================================
   8. FORMS
   ===================================================================== */

/* 8a. Generic — label left, input right */
.js-form-item.form-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}

.js-form-item.form-item > label {
  flex-shrink: 0 !important;
  min-width: 120px !important;
  text-align: right !important;
}

.js-form-item.form-item > input,
.js-form-item.form-item > select,
.js-form-item.form-item > textarea {
  flex: 1 !important;
}

.js-form-item.form-item > .description {
  flex-basis: 100% !important;
  width: 100% !important;
  padding-left: 120px !important;
  font-size: 0.8em !important;
  color: var(--rg-ink-soft) !important;
}

/* Checkboxes — label after input */
.js-form-item.form-type-checkbox {
  flex-direction: row !important;
  align-items: center !important;
}

.js-form-item.form-type-checkbox > label {
  min-width: 0 !important;
  text-align: left !important;
}

/* 8b. Stacked — label above, control full width
   (textareas, the Comentarios field, and every field on /contact) */
.js-form-item.form-item:has(textarea),
.js-form-item-field-comentarios-0-value,
#edit-field-comentarios-0-value,
body.path-contact .js-form-item.form-item {
  flex-direction: column !important;
  align-items: flex-start !important;
}

.js-form-item.form-item:has(textarea),
body.path-contact .js-form-item.form-item {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.js-form-item.form-item:has(textarea) > label,
.js-form-item-field-comentarios-0-value > label,
body.path-contact .js-form-item.form-item > label {
  text-align: left !important;
  min-width: 0 !important;
}

.js-form-item.form-item:has(textarea) > textarea,
.js-form-item-field-comentarios-0-value > textarea,
textarea.form-textarea,
.form-textarea-wrapper textarea,
.js-text-full.text-full.form-textarea.required {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  flex: none !important;
}

body.path-contact .js-form-item.form-item > input {
  width: 100% !important;
  box-sizing: border-box !important;
  flex: none !important;
}

.form-textarea-wrapper,
.form-type-textarea,
.js-form-type-textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Drupal wraps the body textarea in an unstyled <div> that would shrink to
   the textarea's cols="60" width — stretch it. */
body.path-contact #edit-message-wrapper .js-form-item > div {
  align-self: stretch !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 8c. Inputs — visible border, ink on focus */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
  border: 1px solid var(--rg-line) !important;
  outline: none !important;
  padding: 4px 6px !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus {
  border-color: var(--rg-ink) !important;
}

/* Primary submit — flush right */
.button.button--primary.js-form-submit.form-submit {
  display: block !important;
  margin-left: auto !important;
}

/* 8d. Obra edit form — grouped fields */
div#edit-field-materials.form-checkboxes,
div#edit-field-tipo-de-documento,
div#edit-field-pendientes-obra.form-checkboxes {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 0.4rem 1rem !important;
  padding: 0 !important;
  margin: 0 !important;
}

div#edit-field-materials.form-checkboxes > div,
div#edit-field-tipo-de-documento > div,
div#edit-field-pendientes-obra.form-checkboxes > div {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  max-width: fit-content !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

#edit-field-depth-wrapper,
#edit-field-width-wrapper,
#edit-field-height-wrapper {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 0.4rem 1rem !important;
  width: fit-content !important;
}

/* The form is a flex container so the year fields can sit side by side */
:is(.node-obra-form,.node-obra-edit-form) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
}

:is(.node-obra-form,.node-obra-edit-form) > .form-wrapper,
:is(.node-obra-form,.node-obra-edit-form) > .js-form-wrapper {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

#edit-field-year-commenced-wrapper,
#edit-field-year-finished-wrapper {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin-right: 1rem !important;
}

#edit-field-depth-wrapper > div,
#edit-field-width-wrapper > div,
#edit-field-height-wrapper > div,
#edit-field-year-commenced-wrapper > div,
#edit-field-year-finished-wrapper > div {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

/* =====================================================================
   9. RESPONSIVE
   ===================================================================== */

/* ---- 9a. Tablet & phone: <= 991px -------------------------------- */
@media (max-width: 991px) {

  /* Header: static, logo and menu left-aligned like the page content */
  header.header {
    position: relative !important;
  }

  .header-top .container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 var(--rg-gutter-sm) !important;
  }

  /* Compact header: theme padding, block margins and the visually-hidden
     menu title all add air we don't want on a small screen */
  .header-top {
    padding-top: 10px !important;
    padding-bottom: 0 !important;
  }

  .header-top-container {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding-top: 0 !important;
    gap: 0 !important;
  }

  .header-top-block {
    margin: 0 !important;
    padding: 0 !important;
  }

  #block-xarapro-publicmenu-menu {
    margin: 0 !important;
  }

  .site-branding,
  .site-logo {
    height: auto !important;
    transform: none !important;
  }

  .site-logo img {
    height: 34px !important;      /* desktop is 42px (60px x 0.7); smaller here */
  }

  .header-top-right,
  .header-top-right .region,
  .header-top-right nav {
    width: 100% !important;
  }

  /* Public menu wraps onto as many lines as it needs */
  .menu-public-menu .menu {
    flex-wrap: wrap !important;
    gap: 0 1.25rem !important;
    margin-top: 0 !important;
  }

  .menu-public-menu .menu-item {
    padding: 0 !important;
  }

  .menu-public-menu .menu-item a {
    display: inline-block !important;
    padding: 2.5px 0 !important;
    line-height: 1.2 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.06em !important;
  }

  /* Team / utility menus: left-aligned and wrapping */
  .menu-team-menu .menu,
  .menu-obra-sub-menu .menu,
  .menu-contenido-nuevo .menu,
  #block-xarapro-useraccountmenu .menu,
  #block-xarapro-userlogout-menu ul,
  #block-xarapro-userlogout-menu ol,
  #block-xarapro-userloginform .menu,
  #block-xarapro-teammenu,
  #block-xarapro-obrasubmenu,
  #block-xarapro-contenidonuevo,
  #block-xarapro-useraccountmenu,
  #block-xarapro-userlogout-menu,
  #block-xarapro-userloginform {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }

  .region-header {
    width: 100% !important;
    align-items: flex-start !important;
  }

  /* Nothing is fixed any more — drop the header-height offsets */
  .main-wrapper,
  body.path-node .main-wrapper {
    padding-top: 15px !important;   /* keeps menu → page-title space as approved */
  }

  body.path-user .main-container {
    padding-top: 16px !important;
  }

  .dialog-off-canvas-main-canvas > .highlighted,
  .dialog-off-canvas-main-canvas > .main-wrapper {
    margin-top: 0 !important;
  }

  /* One gutter, one column */
  .main-container {
    flex-direction: column !important;
    padding-left: var(--rg-gutter-sm) !important;
    padding-right: var(--rg-gutter-sm) !important;
  }

  body[class] .block-region.region.region-content,
  body[class][class] .block-region.region.region-content:has(.view-id-work) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #block-xarapro-content,
  body[class] #block-xarapro-content {
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-title {
    font-size: 1.25em !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  body.path-node .page-title-wrap {
    padding-top: 12px !important;
  }

  /* Year list becomes a wrapped row above the gallery */
  #sidebar-left {
    position: static !important;
    order: -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin-bottom: 4px;
  }

  .block-views-blockworks-block-1 {
    padding-top: 0 !important;
  }

  #sidebar-left .view-content {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 1.25rem !important;
  }

  #sidebar-left .views-field-field-year-finished {
    text-align: left !important;
    padding-right: 0;
  }

  #sidebar-left .views-field a,
  #sidebar-left .views-field-field-year-finished a {
    padding: 10px 0 !important;
  }

  /* Exhibitions: 2 columns */
  .view-website-exhibitions .views-view-responsive-grid--horizontal {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* About / Press: image above the text instead of floated */
  .About-Portrait,
  .view-id-press .views-field-field-imagen-documento {
    float: none !important;
    margin: 0 0 16px !important;
    padding-bottom: 0 !important;
    max-width: 100% !important;
  }

  .About-Portrait img,
  .view-id-press .views-field-field-imagen-documento img {
    max-width: 100% !important;
    height: auto !important;
  }

  #block-xarapro-views-block-about-block-2 {
    margin-top: 40px !important;
    padding-top: 24px !important;
  }

  /* Work detail: image above the text */
  .view-id-work .views-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .view-id-work .views-field-field-work-image img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Registry table scrolls sideways inside its own box */
  .obra-table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }

  /* Forms: label above control */
  .js-form-item.form-item {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .js-form-item.form-item > label {
    text-align: left !important;
    min-width: 0 !important;
  }

  .js-form-item.form-item > input,
  .js-form-item.form-item > select {
    width: 100% !important;
    flex: none !important;
  }

  .js-form-item.form-item > .description {
    padding-left: 0 !important;
  }

  /* Cookie notice: compact */
  .cookiealert {
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
  }
}

/* ---- 9b. Phone: <= 600px ----------------------------------------- */
@media (max-width: 600px) {
  /* Phone header: site name and menu centred on the page */
  .header-top-container {
    align-items: center !important;
  }

  .header-top-left,
  .header-top-right {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .site-branding,
  .site-logo {
    width: 100% !important;
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Utility menus (team / logged-in only): centred and wrapping */
  .header-top-right nav:not(.menu-public-menu) ul.menu {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  /* Public menu: 3 columns x 2 rows — About Works Exhibitions / Texts CV
     Contact — centred, with clear space between every option (a plain wrap
     would orphan "Contact" on its own). The selector matches the desktop
     rule's specificity and comes later. */
  .header-top-right nav.menu-public-menu ul.menu,
  .menu-public-menu .menu {
    display: grid !important;
    grid-template-columns: repeat(3, auto) !important;
    justify-content: center !important;
    justify-items: center !important;
    column-gap: 1.75rem !important;
    row-gap: 0.35rem !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: center !important;
  }

  .works-gallery .view-content {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .view-website-exhibitions .views-view-responsive-grid--horizontal {
    grid-template-columns: 1fr !important;
  }
}

/* ---- 10. Cookie notice: thin neutral strip ----------------------- */
.cookiealert {
  background: #fff !important;
  color: var(--rg-ink-soft) !important;
  border-top: 1px solid var(--rg-hairline) !important;
  padding: 6px 16px !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  letter-spacing: 0.02em !important;
  text-align: center !important;
}

.cookiealert .container {
  max-width: none !important;
  padding: 0 !important;
}

.cookiealert p {
  margin: 0 !important;
}

.cookiealert .acceptcookies {
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--rg-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--rg-ink) !important;
  cursor: pointer;
  font: inherit !important;
  letter-spacing: var(--rg-tracking) !important;
  margin-left: 0.75em !important;
  padding: 0 !important;
  text-transform: uppercase !important;
}

/* =====================================================================
   11. EXHIBITION PAGES (public)
   One two-column grid (narrow label column | wide content column) shared
   by the meta row, the facts + text and every block, so everything lines
   up on the same vertical. Big light title, hairline rules, numerals.
   Content: title (page-title block) > meta row > cover > facts + text >
   content_bottom blocks: Installation views, Works shown, Also shown.
   ===================================================================== */
body.page-type-exposicion {
  --rg-ex-label: minmax(9rem, 1fr);     /* narrow column                */
  --rg-ex-main:  minmax(0, 3.2fr);      /* wide column                  */
  --rg-ex-gap:   2rem;
}

/* Full content width (the generic node rule shrink-wraps it) */
body.page-type-exposicion[class][class] .block-region.region.region-content.region-content,
body.page-type-exposicion #block-xarapro-content,
body.page-type-exposicion .content-bottom,
body.page-type-exposicion .content-bottom .block-region {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

body.page-type-exposicion .main-container {
  padding-left: var(--rg-gutter) !important;
  padding-right: var(--rg-gutter) !important;
  box-sizing: border-box;
}

/* The generic page-title block is blank on exhibition pages */
body.page-type-exposicion .page-title-wrap { display: none !important; }

.rg-exhibition { width: 100%; }

/* Header: type of project / title / venue / place / dates */
.rg-ex-head {
  margin: 0 0 4.5rem;
  padding-top: 2.5rem;
}

.rg-ex-head p { margin: 0; }

.rg-ex-back {
  display: inline-block;
  margin-bottom: 1.75rem;
  font-size: 0.7rem;
  letter-spacing: var(--rg-tracking);
  text-transform: uppercase;
  color: var(--rg-ink-soft);
  text-decoration: none;
}

.rg-ex-back:hover { color: var(--rg-ink); }

/* Type of project: small */
.rg-ex-kind {
  margin-bottom: 0.6rem !important;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: var(--rg-tracking);
  text-transform: uppercase;
  color: var(--rg-ink-soft);
}

/* Title: large, bold */
.rg-ex-title {
  margin: 0 0 0.9rem;
  padding: 0;
  max-width: 16em;
  font-size: clamp(2.1rem, 5.6vw, 5.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--rg-ink);
}

/* Curated by: large, lighter than the title */
.rg-ex-curator {
  margin-bottom: 1.1rem !important;
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--rg-ink);
}

/* Venue: medium, light */
.rg-ex-venue {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--rg-ink);
}

/* City / location: smaller, light */
.rg-ex-place {
  margin-top: 0.2rem !important;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--rg-ink-soft);
}

/* Dates */
.rg-ex-dates {
  margin-top: 0.6rem !important;
  padding-top: 0.45rem;
  border-top: 1px solid var(--rg-ink);
  display: inline-block;
  min-width: 12rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--rg-ink);
}

/* The header column shrink-wraps the main image; every text child has zero
   intrinsic width (min-width 100%), so the title, venue and "With" list are
   all exactly as wide as the image. */
.rg-ex-head {
  width: fit-content;
  max-width: 100%;
}

.rg-ex-head > .rg-ex-back,
.rg-ex-head > .rg-ex-kind,
.rg-ex-head > .rg-ex-title,
.rg-ex-head > .rg-ex-curator,
.rg-ex-head > .rg-ex-venue,
.rg-ex-head > .rg-ex-place,
.rg-ex-head > .rg-ex-with {
  width: 0;
  min-width: 100%;
}

.rg-ex-head > .rg-ex-back { display: block; }

/* No main image: the column simply takes the full width */
.rg-ex-head:not(:has(.rg-ex-cover)) { width: 100%; }
.rg-ex-head:not(:has(.rg-ex-cover)) > * { width: auto !important; min-width: 0 !important; }

.rg-ex-cover { margin: 0.2rem 0 1.75rem; }

.rg-ex-cover img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 80vh;
}

.rg-ex-with {
  margin: 2.25rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rg-ink);
}

.rg-ex-with-label {
  margin: 0 0 0.9rem;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: var(--rg-tracking);
  text-transform: uppercase;
  color: var(--rg-ink-soft);
}

.rg-ex-with-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;                       /* fills rows first, then wraps */
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  column-gap: 2rem;
  row-gap: 0.3rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.5;
}

.rg-ex-with-list li {
  margin: 0;
  padding: 0;
}

/* Text */
.rg-ex-intro { margin: 0 0 5.5rem; }

/* The text column is as wide as the main image (and the title block above it).
   The exhibition shrink-wraps its image; the text has zero intrinsic width
   (min-width 100%) so it takes exactly that width. A narrow (portrait) image
   never makes the text narrower than 42rem; with no image the text keeps the
   full page width. */
.rg-exhibition:has(.rg-ex-cover) {
  width: fit-content;
  min-width: min(100%, 42rem);
  max-width: 100%;
}

.rg-exhibition:has(.rg-ex-cover) .rg-ex-intro {
  width: 0;
  min-width: 100%;
}

.rg-ex-text {
  max-width: none;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--rg-ink);
}

.rg-ex-text p { margin: 0 0 1.2em; }

.rg-ex-text p:first-child {
  font-size: 1.15em;
  line-height: 1.5;
}

/* Editors only: original archive fields, tucked away */
.rg-ex-archive {
  margin: 0 0 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rg-hairline);
  font-size: 0.8rem;
  color: var(--rg-ink-soft);
}

.rg-ex-archive summary {
  cursor: pointer;
  letter-spacing: var(--rg-tracking);
  text-transform: uppercase;
}

/* Block headings: small label above a rule */
body.page-type-exposicion .content-bottom .block { margin: 0 0 5.5rem; padding: 0; }

body.page-type-exposicion .content-bottom .block > h2 {
  margin: 0 0 1.5rem;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--rg-ink);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: var(--rg-tracking);
  text-transform: uppercase;
  color: var(--rg-ink-soft);
}

/* Installation views: uniform 3:2 thumbnails (cropped for display only, the
   full image opens in the slideshow), numbered underneath. */
.rg-installation-views .view-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 13px;
  align-items: start;
  counter-reset: rgview;
}

.rg-installation-views .views-row {
  margin: 0;
  padding: 0;
  counter-increment: rgview;
}

.rg-installation-views .views-field,
.rg-installation-views .field-content { margin: 0; padding: 0; }

.rg-installation-views a.rg-lightbox-link {
  display: block;
  cursor: zoom-in;
  background: var(--rg-hairline);
}

.rg-installation-views img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.rg-installation-views a.rg-lightbox-link:hover img,
.rg-installation-views a.rg-lightbox-link:focus-visible img { opacity: 0.82; }

.rg-installation-views a.rg-lightbox-link:focus-visible {
  outline: 2px solid var(--rg-ink);
  outline-offset: 3px;
}

.rg-installation-views .views-row::after {
  content: counter(rgview, decimal-leading-zero);
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: var(--rg-tracking);
  color: var(--rg-ink-soft);
}

/* Slideshow (opened by rodriguez-graham.js) */
.rg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.rg-lightbox.is-open { opacity: 1; visibility: visible; }

.rg-lightbox__figure {
  margin: 0;
  padding: 0 clamp(3rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
}

.rg-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  max-height: calc(100dvh - 8rem);
  width: auto;
  height: auto;
}

.rg-lightbox__count {
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: var(--rg-tracking);
  color: var(--rg-ink-soft);
}

.rg-lightbox button {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rg-ink);
  font-family: var(--rg-font);
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rg-lightbox button:hover { color: var(--rg-ink-soft); }

.rg-lightbox button:focus-visible {
  outline: 2px solid var(--rg-ink);
  outline-offset: 4px;
}

.rg-lightbox__close {
  top: 1rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  font-size: 2.4rem;
}

.rg-lightbox__prev,
.rg-lightbox__next {
  top: 50%;
  width: 3.5rem;
  height: 5rem;
  margin-top: -2.5rem !important;
  font-size: 2.6rem;
}

.rg-lightbox__prev { left: 0.5rem; }
.rg-lightbox__next { right: 0.5rem; }

.rg-lightbox.is-single .rg-lightbox__prev,
.rg-lightbox.is-single .rg-lightbox__next { display: none; }

body.rg-lightbox-open { overflow: hidden; }

/* Works shown: identical square tiles; each work is shown whole (never
   cropped), centred on a quiet tint; title and year underneath. */
.rg-works-shown .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 2rem 13px;
  align-items: start;
}

.rg-works-shown .views-row {
  margin: 0;
  padding: 0;
}

.rg-works-shown .views-field-field-work-image a {
  display: block;
  background: rgba(28, 28, 26, 0.045);
}

.rg-works-shown img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 6%;
  box-sizing: border-box;
}

.rg-works-shown .views-field { display: block; margin: 0; padding: 0; }

.rg-works-shown .views-field-title {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rg-ink);
}

.rg-works-shown .views-field-title,
.rg-works-shown .views-field-title * {
  font-style: normal !important;
  font-weight: 400 !important;
  color: var(--rg-ink);
}

.rg-works-shown .views-field-field-year-finished {
  font-size: 0.7rem;
  color: var(--rg-ink-soft);
}

.rg-works-shown a { color: inherit; text-decoration: none; }

/* Also shown: quiet text list */
.rg-works-text .view-content {
  display: grid;                       /* fills rows first, then wraps */
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  column-gap: 2rem;
  row-gap: 0.5rem;
}

.rg-works-text .views-row {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.35;
}

.rg-works-text .views-field { display: inline; }

.rg-works-text .views-field-title a {
  color: var(--rg-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-style: normal;
  font-weight: 400;
  text-decoration: none;
}

.rg-works-text .views-field-field-year-finished {
  margin-left: 0.5em;
  color: var(--rg-ink-soft);
}

/* Exhibitions list: titles and images link to the page */
.view-website-exhibitions .views-field-title a,
.view-website-exhibitions .views-field-field-imagen-portada a {
  color: inherit;
  text-decoration: none;
}

.view-website-exhibitions .views-field-title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---- Tablet <= 991px ---- */
@media (max-width: 991px) {
  body.page-type-exposicion { --rg-ex-gap: 1.25rem; --rg-ex-label: minmax(7rem, 1fr); }

  body.page-type-exposicion .main-container {
    padding-left: var(--rg-gutter-sm) !important;
    padding-right: var(--rg-gutter-sm) !important;
  }

  .rg-ex-head { padding-top: 1.5rem; margin-bottom: 3rem; }

  .rg-ex-intro { margin-bottom: 4rem; }

  body.page-type-exposicion .content-bottom .block { margin-bottom: 4rem; }
}

/* ---- Phone <= 600px ---- */
@media (max-width: 600px) {
  .rg-ex-back { margin-bottom: 1.25rem; }

  .rg-installation-views .view-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .rg-lightbox__figure { padding: 0 0.5rem; }
  .rg-lightbox__prev, .rg-lightbox__next { top: auto; bottom: 0.75rem; margin-top: 0 !important; }
  .rg-lightbox__prev { left: 0.75rem; }
  .rg-lightbox__next { right: 0.75rem; }
  .rg-lightbox__img { max-height: calc(100vh - 10rem); max-height: calc(100dvh - 10rem); }

  .rg-works-shown .view-content { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 10px; }
  .rg-works-text .view-content { grid-template-columns: 1fr; }
  body.page-type-exposicion .content-bottom .block { margin-bottom: 3rem; }
}

/* =====================================================================
   11. EDITOR STRIP — the logged-in-only menus (Team, New, Artist Data)
   One quiet, tightly set block under the public menu: a hairline, then
   three rows — REGISTER / NEW / EDIT — each a small grey label followed
   by muted links. Visitors never see these menus, so nothing here
   touches the public design. Labels come from the menu text and from
   data-rg-label (set in rodriguez-graham.js from the browser language).
   ===================================================================== */

/* Row labels (English default; JS swaps in the browser language) */
body.user-logged-in #block-xarapro-teammenu::before { content: "Register"; }
body.user-logged-in #block-xarapro-contenidonuevo::before { content: "New"; }
body.user-logged-in #block-xarapro-artistdatamenu::before { content: "Edit"; }
body.user-logged-in #block-xarapro-teammenu[data-rg-label]::before,
body.user-logged-in #block-xarapro-contenidonuevo[data-rg-label]::before,
body.user-logged-in #block-xarapro-artistdatamenu[data-rg-label]::before {
  content: attr(data-rg-label);
}

body.user-logged-in #block-xarapro-teammenu::before,
body.user-logged-in #block-xarapro-contenidonuevo::before,
body.user-logged-in #block-xarapro-artistdatamenu::before {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a94;
}

/* The three link lists: one horizontal, bullet-free row each */
body.user-logged-in #block-xarapro-teammenu .menu,
body.user-logged-in #block-xarapro-contenidonuevo .menu,
body.user-logged-in #block-xarapro-artistdatamenu > ul {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 1.25rem !important;
  width: auto !important;
}

/* The theme gives list items a 30px line-height and 4px padding — that is
   what made the rows tall. Set them tight instead. */
body.user-logged-in #block-xarapro-teammenu li,
body.user-logged-in #block-xarapro-contenidonuevo li,
body.user-logged-in #block-xarapro-artistdatamenu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

body.user-logged-in #block-xarapro-teammenu .menu-item a,
body.user-logged-in #block-xarapro-contenidonuevo .menu-item a,
body.user-logged-in #block-xarapro-artistdatamenu li a {
  font-size: 0.68rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--rg-ink-soft) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

body.user-logged-in #block-xarapro-teammenu a:hover,
body.user-logged-in #block-xarapro-contenidonuevo a:hover,
body.user-logged-in #block-xarapro-artistdatamenu a:hover {
  color: var(--rg-ink) !important;
}

/* Desktop: a two-column grid so the three rows share one left edge,
   with the whole strip flush to the right edge of the page grid */
@media (min-width: 992px) {
  body.user-logged-in .header-top-right .region-header-top-right {
    display: grid !important;
    grid-template-columns: 1fr max-content !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    align-items: baseline !important;
  }

  body.user-logged-in #block-xarapro-publicmenu {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  body.user-logged-in #block-xarapro-teammenu,
  body.user-logged-in #block-xarapro-contenidonuevo,
  body.user-logged-in #block-xarapro-artistdatamenu {
    grid-column: 2 !important;
    width: auto !important;
    display: grid !important;
    grid-template-columns: 4.5rem auto !important;
    align-items: baseline !important;
    justify-content: start !important;
    margin: 0 !important;
    padding: 0.1rem 0 !important;
  }

  body.user-logged-in #block-xarapro-teammenu {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid var(--rg-hairline) !important;
  }
}

/* Tablet & phone: centred, wrapping, same quiet style */
@media (max-width: 991px) {
  body.user-logged-in #block-xarapro-teammenu,
  body.user-logged-in #block-xarapro-contenidonuevo,
  body.user-logged-in #block-xarapro-artistdatamenu {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: baseline !important;
    column-gap: 0.75rem !important;
    margin: 0 !important;
    padding: 0.1rem 0 !important;
  }

  body.user-logged-in #block-xarapro-teammenu {
    margin-top: 0.4rem !important;
    padding-top: 0.4rem !important;
    border-top: 1px solid var(--rg-hairline) !important;
  }

  body.user-logged-in #block-xarapro-teammenu .menu,
  body.user-logged-in #block-xarapro-contenidonuevo .menu,
  body.user-logged-in #block-xarapro-artistdatamenu > ul {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0 1rem !important;
  }
}

/* ---- 11b. Editor strip: line spacing halved; site name level with the menu ---- */
/* The rows' line box was being set by an 18px font on the block, not by the
   12px links, which made every row ~27px tall. Size the block like the links. */
body.user-logged-in #block-xarapro-teammenu,
body.user-logged-in #block-xarapro-contenidonuevo,
body.user-logged-in #block-xarapro-artistdatamenu {
  font-size: 0.68rem !important;
  line-height: 1.3 !important;
  padding-top: 0.05rem !important;
  padding-bottom: 0.05rem !important;
}

body.user-logged-in #block-xarapro-teammenu ul,
body.user-logged-in #block-xarapro-contenidonuevo ul,
body.user-logged-in #block-xarapro-artistdatamenu ul {
  padding: 0 !important;
  margin: 0 !important;
}

/* Desktop: logged in, the taller menu column pushed the site name to the
   bottom of the header. Pin it to the top, level with the public menu. */
@media (min-width: 992px) {
  body.user-logged-in #block-xarapro-teammenu {
    padding-top: 0.5rem !important;
  }

  body.user-logged-in .header-top-container {
    align-items: flex-start !important;
  }

  body.user-logged-in .site-branding {
    align-items: flex-start !important;
  }

  body.user-logged-in .site-logo {
    margin-top: 0 !important;
  }
}
@media (max-width: 991px) {
  body.user-logged-in #block-xarapro-teammenu {
    padding-top: 0.4rem !important;
  }
}

/* ---- 11c. User menu: space below the header ----
   The fixed header grows by ~50px when the user menu is showing, but the
   content below starts at the same place (the admin toolbar already adds
   83px of body padding). Pull the content up so the gap between the bottom
   of the header and the page title matches what visitors see (134px). */
@media (min-width: 992px) {
  body.user-logged-in.toolbar-tray-open .main-wrapper {
    padding-top: 161px !important;
  }
}

/* ---- 11d. User menu on ONE row (desktop) ----
   REGISTER … | NEW … | EDIT … sit side by side under the public menu,
   separated by thin vertical rules, instead of three stacked rows.
   The logo is lifted out of the flow so the menus can use the full width
   (they are too wide to share a row with it). Header: 146px -> 110px. */
@media (min-width: 992px) {
  body.user-logged-in .header-top-container {
    position: relative !important;
  }

  body.user-logged-in .header-top-left {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: auto !important;
  }

  body.user-logged-in .header-top-right {
    width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
  }

  body.user-logged-in .header-top-right .region-header-top-right {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: baseline !important;
    align-content: flex-start !important;
    height: auto !important;
  }

  body.user-logged-in #block-xarapro-publicmenu {
    flex: 0 0 100% !important;
    width: 100% !important;
  }

  body.user-logged-in #block-xarapro-teammenu,
  body.user-logged-in #block-xarapro-contenidonuevo,
  body.user-logged-in #block-xarapro-artistdatamenu {
    grid-column: auto !important;
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: baseline !important;
    gap: 0.5rem !important;
    width: auto !important;
    position: relative;
    margin: 0.5rem 0 0 !important;
    padding: 0.5rem 0.7rem 0 0.7rem !important;
    border-top: 1px solid var(--rg-hairline) !important;
  }

  body.user-logged-in #block-xarapro-teammenu {
    padding-left: 0 !important;
  }

  body.user-logged-in #block-xarapro-artistdatamenu {
    padding-right: 0 !important;
  }

  body.user-logged-in #block-xarapro-teammenu::before,
  body.user-logged-in #block-xarapro-contenidonuevo::before,
  body.user-logged-in #block-xarapro-artistdatamenu::before {
    white-space: nowrap;
  }

  body.user-logged-in #block-xarapro-teammenu .menu,
  body.user-logged-in #block-xarapro-contenidonuevo .menu,
  body.user-logged-in #block-xarapro-artistdatamenu > ul {
    gap: 0.8rem !important;
  }

  body.user-logged-in #block-xarapro-teammenu .menu-item a,
  body.user-logged-in #block-xarapro-contenidonuevo .menu-item a,
  body.user-logged-in #block-xarapro-artistdatamenu li a {
    letter-spacing: 0.05em !important;
  }

  /* vertical separator between the three categories */
  body.user-logged-in #block-xarapro-contenidonuevo,
  body.user-logged-in #block-xarapro-artistdatamenu {
    background: linear-gradient(#cfcfca, #cfcfca) left bottom / 1px calc(100% - 0.75rem) no-repeat !important;
  }
}

/* ---- 11e. User menu centered on the page (desktop) ---- */
@media (min-width: 992px) {
  body.user-logged-in .header-top-right .region-header-top-right {
    justify-content: center !important;
  }
}

/* =====================================================================
   12. ARTWORK FORM — node/add/obra and node/N/edit (team only)
   One calm column on the site grid. Seven numbered sections, labels above
   their fields, related fields side by side (Height / Width / Depth /
   Weight share one row). Section titles are inserted by
   rodriguez-graham.js in the visitor's browser language.
   ===================================================================== */

/* -- page frame: line up with the logo, like every other page ---------- */
body.path-node:has(form:is(.node-obra-form,.node-obra-edit-form)) .block-region.region.region-content {
  width: auto !important;
  max-width: none !important;
  margin-left: var(--rg-gutter) !important;
  margin-right: var(--rg-gutter) !important;
}

body.path-node:has(form:is(.node-obra-form,.node-obra-edit-form)) .page-title-wrap {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0.25rem !important;
}

body.path-node:has(form:is(.node-obra-form,.node-obra-edit-form)) .page-title {
  font-size: 2rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* -- the form is a 12-column grid -------------------------------------- */
body form:is(.node-obra-form,.node-obra-edit-form) {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  column-gap: 1.5rem !important;
  row-gap: 1.25rem !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 62rem !important;
  margin: 0 !important;
  padding: 0 0 4rem !important;
  counter-reset: rgsec;
}

body form:is(.node-obra-form,.node-obra-edit-form) > * {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0 !important;
}

/* section titles */
body form:is(.node-obra-form,.node-obra-edit-form) > .rg-section {
  counter-increment: rgsec;
  margin: 1.75rem 0 0 !important;
  padding: 0.7rem 0 0 !important;
  border-top: 2px solid var(--rg-ink);
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  color: var(--rg-ink) !important;
  text-align: left !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) > .rg-section::before {
  content: counter(rgsec, decimal-leading-zero);
  display: inline-block;
  min-width: 2.2rem;
  font-weight: 300;
  color: var(--rg-ink-soft);
}

body form:is(.node-obra-form,.node-obra-edit-form) > .rg-section:first-of-type {
  margin-top: 0 !important;
}

/* widths: first-in-row fields start at column 1, followers just span */
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-work-image          { grid-column: 1 / span 8; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-image-status        { grid-column: span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-title                     { grid-column: 1 / span 8; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-numero-de-catalogo  { grid-column: span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-working-title       { grid-column: 1 / span 6; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-cuerpo-de-obra      { grid-column: span 6; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-category            { grid-column: 1 / span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-year-commenced      { grid-column: span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-year-finished       { grid-column: span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-height              { grid-column: 1 / span 3; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-width               { grid-column: span 3; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-depth               { grid-column: span 3; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-peso                { grid-column: span 3; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-status              { grid-column: 1 / span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-location            { grid-column: span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-collection          { grid-column: span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-firmada             { grid-column: 1 / span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-framed              { grid-column: span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-edition             { grid-column: span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-framed-width        { grid-column: 1 / span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-framed-height       { grid-column: span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-framed-depth        { grid-column: span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-edition-size        { grid-column: 1 / span 6; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-edition-number      { grid-column: span 6; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-raw-image-file      { grid-column: 1 / span 6; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-archivo-de-imagen-editado { grid-column: span 6; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-show-in-website     { grid-column: 1 / span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-selected-works      { grid-column: span 4; }

/* -- one field = label above, control below ---------------------------- */
body form:is(.node-obra-form,.node-obra-edit-form) .js-form-item.form-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  gap: 0.35rem !important;
  margin: 0 !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .js-form-item.form-item > label,
body form:is(.node-obra-form,.node-obra-edit-form) label,
body form:is(.node-obra-form,.node-obra-edit-form) legend,
body form:is(.node-obra-form,.node-obra-edit-form) .fieldset-legend,
body form:is(.node-obra-form,.node-obra-edit-form) summary {
  min-width: 0 !important;
  padding: 0 !important;
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  line-height: 1.3 !important;
  text-align: left !important;
  text-transform: uppercase !important;
  color: var(--rg-ink-soft) !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .form-required::after,
body form:is(.node-obra-form,.node-obra-edit-form) label.form-required::after {
  color: var(--rg-ink) !important;
  margin-left: 0.15em;
}

/* controls */
body form:is(.node-obra-form,.node-obra-edit-form) input[type="text"],
body form:is(.node-obra-form,.node-obra-edit-form) input[type="number"],
body form:is(.node-obra-form,.node-obra-edit-form) input[type="url"],
body form:is(.node-obra-form,.node-obra-edit-form) input[type="email"],
body form:is(.node-obra-form,.node-obra-edit-form) select,
body form:is(.node-obra-form,.node-obra-edit-form) textarea {
  -webkit-appearance: none;
  appearance: none;
  flex: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  height: 2.6rem;
  margin: 0 !important;
  padding: 0.5rem 0.7rem !important;
  border: 1px solid var(--rg-line) !important;
  border-radius: 0 !important;
  background-color: #fff !important;
  font: inherit !important;
  font-size: 0.95rem !important;
  line-height: 1.3 !important;
  color: var(--rg-ink) !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) textarea {
  height: auto;
  min-height: 7.5rem;
}

body form:is(.node-obra-form,.node-obra-edit-form) select {
  padding-right: 2rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231c1c1a' stroke-width='1.2'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.8rem center !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) input:focus,
body form:is(.node-obra-form,.node-obra-edit-form) select:focus,
body form:is(.node-obra-form,.node-obra-edit-form) textarea:focus {
  outline: none !important;
  border-color: var(--rg-ink) !important;
  box-shadow: inset 0 0 0 1px var(--rg-ink) !important;
}

/* measurements: input + unit on one line, label above */
body form:is(.node-obra-form,.node-obra-edit-form) .js-form-item.form-type-number {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.5rem !important;
  row-gap: 0.35rem !important;
  align-items: center !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .form-type-number > label,
body form:is(.node-obra-form,.node-obra-edit-form) .form-type-number > .description {
  grid-column: 1 / -1;
}

body form:is(.node-obra-form,.node-obra-edit-form) .field-suffix {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--rg-ink-soft);
}

/* help text */
body form:is(.node-obra-form,.node-obra-edit-form) .js-form-item.form-item > .description,
body form:is(.node-obra-form,.node-obra-edit-form) .description {
  flex-basis: auto !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.72rem !important;
  line-height: 1.4 !important;
  color: var(--rg-ink-soft) !important;
}

/* checkbox groups (Materials, Pendientes): a tidy multi-column list */
body form:is(.node-obra-form,.node-obra-edit-form) fieldset {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) fieldset > legend {
  margin-bottom: 0.5rem !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .form-checkboxes {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.45rem 1.25rem;
}

body form:is(.node-obra-form,.node-obra-edit-form) .js-form-item.form-type-checkbox {
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .form-type-checkbox > label,
body form:is(.node-obra-form,.node-obra-edit-form) label.option {
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--rg-ink) !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) input[type="checkbox"],
body form:is(.node-obra-form,.node-obra-edit-form) input[type="radio"] {
  accent-color: var(--rg-ink);
  margin: 0 !important;
}

/* file uploads + image previews */
body form:is(.node-obra-form,.node-obra-edit-form) input[type="file"] {
  width: 100% !important;
  font-size: 0.8rem !important;
  color: var(--rg-ink-soft) !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) input[type="file"]::file-selector-button,
body form:is(.node-obra-form,.node-obra-edit-form) .button:not(.form-submit) {
  margin-right: 0.8rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--rg-ink);
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rg-ink);
  cursor: pointer;
}

body form:is(.node-obra-form,.node-obra-edit-form) input[type="file"]::file-selector-button:hover {
  background: var(--rg-ink);
  color: #fff;
}

body form:is(.node-obra-form,.node-obra-edit-form) .image-widget {
  display: block !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .image-preview img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rg-hairline);
}

/* multi-file groups (Detalles, RAW, Editado, Imagen a Muro) */
body form:is(.node-obra-form,.node-obra-edit-form) details {
  margin: 0 !important;
  padding: 0.7rem 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--rg-hairline) !important;
  background: transparent !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) details > summary {
  margin-bottom: 0.6rem;
  cursor: pointer;
}

body form:is(.node-obra-form,.node-obra-edit-form) details > .details-wrapper,
body form:is(.node-obra-form,.node-obra-edit-form) details > div {
  padding: 0 !important;
}

/* publishing: the tabbed block, Published, and Save */
body form:is(.node-obra-form,.node-obra-edit-form) .vertical-tabs {
  margin: 0 !important;
  width: 100% !important;
  border: 1px solid var(--rg-hairline);
  font-size: 0.85rem;
}

body form:is(.node-obra-form,.node-obra-edit-form) .vertical-tabs__menu {
  width: 11rem !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .vertical-tabs__menu-item-title {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body form:is(.node-obra-form,.node-obra-edit-form) #edit-footer {
  margin: 0 !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .form-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex !important;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0 !important;
  border-top: 2px solid var(--rg-ink);
  background: #fff;
}

body form:is(.node-obra-form,.node-obra-edit-form) .form-actions .form-submit,
body form:is(.node-obra-form,.node-obra-edit-form) .form-actions input[type="submit"] {
  margin: 0 !important;
  padding: 0.85rem 2.4rem !important;
  border: 1px solid var(--rg-ink) !important;
  border-radius: 0 !important;
  background: var(--rg-ink) !important;
  font: inherit !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  cursor: pointer;
}

body form:is(.node-obra-form,.node-obra-edit-form) .form-actions .form-submit:hover {
  background: #fff !important;
  color: var(--rg-ink) !important;
}

/* phone & small tablet: one column, measurements 2 x 2 */
@media (max-width: 760px) {
  body.path-node:has(form:is(.node-obra-form,.node-obra-edit-form)) .block-region.region.region-content,
  body.path-node:has(form:is(.node-obra-form,.node-obra-edit-form)) .page-title-wrap {
    margin-left: var(--rg-gutter-sm) !important;
    margin-right: var(--rg-gutter-sm) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body form:is(.node-obra-form,.node-obra-edit-form) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; column-gap: 1rem !important; }
  body form:is(.node-obra-form,.node-obra-edit-form) > *,
  body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-work-image,
  body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-image-status { grid-column: 1 / -1 !important; }
  body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-height,
  body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-width,
  body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-depth,
  body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-peso { grid-column: span 2 !important; }
  body form:is(.node-obra-form,.node-obra-edit-form) .vertical-tabs__menu { width: auto !important; }
}

/* ---- 12b. Artwork form: overrides for the older id-based rules ---- */
/* Section 8 sizes these wrappers by id (inline-flex, fit-content): reset. */
body form:is(.node-obra-form,.node-obra-edit-form) #edit-field-height-wrapper,
body form:is(.node-obra-form,.node-obra-edit-form) #edit-field-width-wrapper,
body form:is(.node-obra-form,.node-obra-edit-form) #edit-field-depth-wrapper,
body form:is(.node-obra-form,.node-obra-edit-form) #edit-field-year-commenced-wrapper,
body form:is(.node-obra-form,.node-obra-edit-form) #edit-field-year-finished-wrapper {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin-right: 0 !important;
  flex: none !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) #edit-field-height-wrapper > div,
body form:is(.node-obra-form,.node-obra-edit-form) #edit-field-width-wrapper > div,
body form:is(.node-obra-form,.node-obra-edit-form) #edit-field-depth-wrapper > div,
body form:is(.node-obra-form,.node-obra-edit-form) #edit-field-year-commenced-wrapper > div,
body form:is(.node-obra-form,.node-obra-edit-form) #edit-field-year-finished-wrapper > div {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  white-space: normal !important;
  flex: none !important;
}

/* measurements: value + unit on one line, label above */
body form:is(.node-obra-form,.node-obra-edit-form) #edit-field-height-wrapper > div,
body form:is(.node-obra-form,.node-obra-edit-form) #edit-field-width-wrapper > div,
body form:is(.node-obra-form,.node-obra-edit-form) #edit-field-depth-wrapper > div,
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-peso .js-form-item.form-item,
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-framed-width .js-form-item.form-item,
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-framed-height .js-form-item.form-item,
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-framed-depth .js-form-item.form-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.5rem !important;
  row-gap: 0.35rem !important;
  align-items: center !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .details-description {
  font-size: 0.72rem !important;
  line-height: 1.4 !important;
  color: var(--rg-ink-soft) !important;
  margin: 0 0 0.6rem !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .field--name-field-imagen-a-muro {
  border: 0 !important;
}

/* publishing block: tabs run across the top instead of down the side */
body form:is(.node-obra-form,.node-obra-edit-form) .vertical-tabs {
  display: block !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .vertical-tabs__menu {
  display: flex !important;
  flex-wrap: wrap;
  float: none !important;
  width: auto !important;
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  list-style: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--rg-hairline) !important;
  background: transparent !important;
  gap: 0 1.5rem;
}

body form:is(.node-obra-form,.node-obra-edit-form) .vertical-tabs__menu-item {
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .vertical-tabs__menu-item a {
  display: block;
  padding: 0.45rem 0 !important;
  border: 0 !important;
  text-decoration: none !important;
  color: var(--rg-ink-soft) !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .vertical-tabs__menu-item.is-selected a {
  color: var(--rg-ink) !important;
  box-shadow: inset 0 -2px 0 var(--rg-ink);
}

body form:is(.node-obra-form,.node-obra-edit-form) .vertical-tabs__menu-item-summary {
  display: none !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .vertical-tabs__pane,
body form:is(.node-obra-form,.node-obra-edit-form) .vertical-tabs__items {
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
}

/* ---------------------------------------------------------------------
   12c. ARTWORK FORM: "Published" checkbox sits at the left, label beside it
   (an older rule stretched the checkbox to the full row width)
   --------------------------------------------------------------------- */
body form:is(.node-obra-form,.node-obra-edit-form) #edit-status-wrapper .js-form-item.form-item{
  display:flex !important;flex-direction:row !important;align-items:center !important;
  justify-content:flex-start !important;gap:.6rem !important;padding:.9rem 0 !important;
  margin:0 !important;width:auto !important;
}
body form:is(.node-obra-form,.node-obra-edit-form) #edit-status-wrapper .js-form-item.form-item > input.form-checkbox{
  position:static !important;float:none !important;margin:0 !important;order:1;
  width:1rem !important;height:1rem !important;flex:0 0 1rem !important;min-width:0 !important;
}
body form:is(.node-obra-form,.node-obra-edit-form) #edit-status-wrapper .js-form-item.form-item > label{
  order:2;text-align:left !important;margin:0 !important;float:none !important;
  width:auto !important;flex:0 0 auto !important;
}

/* ---------------------------------------------------------------------
   12d. ARTWORK FORM (edit): language and URL alias fields
   --------------------------------------------------------------------- */
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-langcode { grid-column: 1 / span 4; }
body form:is(.node-obra-form,.node-obra-edit-form) .field--name-path     { grid-column: 1 / -1; }

/* =====================================================================
   13. ARTWORK REGISTER (/obra) — team only
   Same grammar as the artwork form: lines up with the logo, a heavy rule
   over the column heads, one hairline between works, everything upright
   and horizontal (the catalog number and the edit button used to be
   rotated). Headings and the page title follow the browser language
   (rodriguez-graham.js).
   ===================================================================== */
body.path-obra .block-region.region.region-content {
  width: auto !important;
  max-width: none !important;
  margin-left: var(--rg-gutter) !important;
  margin-right: var(--rg-gutter) !important;
}

body.path-obra .rg-register-title {
  font-size: 2rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1.1 !important;
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
  color: var(--rg-ink) !important;
}

body.path-obra .obra-table {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow-x: auto !important;
}

body.path-obra .obra-table table.cols-7 {
  width: 100% !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 0 !important;
}

/* column heads */
body.path-obra .obra-table table.cols-7 thead th {
  padding: 0.9rem 0.75rem 0.6rem !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-align: left !important;
  white-space: nowrap !important;
  color: var(--rg-ink-soft) !important;
  border-top: 2px solid var(--rg-ink) !important;
  border-bottom: 1px solid var(--rg-ink) !important;
}

/* rows */
body.path-obra .obra-table table.cols-7 tbody td {
  padding: 0.7rem 0.75rem !important;
  width: auto !important;
  height: auto !important;
  vertical-align: middle !important;
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  text-align: left !important;
  color: var(--rg-ink-soft) !important;
  border-bottom: 1px solid var(--rg-hairline) !important;
}

body.path-obra .obra-table table.cols-7 tbody tr:hover td {
  background: #fafaf8 !important;
}

body.path-obra .obra-table table.cols-7 thead th:first-child,
body.path-obra .obra-table table.cols-7 tbody td:first-child {
  padding-left: 0 !important;
}

body.path-obra .obra-table table.cols-7 thead th:last-child,
body.path-obra .obra-table table.cols-7 tbody td:last-child {
  padding-right: 0 !important;
}

/* catalog number: upright, bold, one line */
body.path-obra .obra-table table.cols-7 tbody td.views-field-field-numero-de-catalogo {
  position: static !important;
  width: 9rem !important;
  max-width: none !important;
  height: auto !important;
  overflow: visible !important;
  white-space: nowrap !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  font-variant-numeric: tabular-nums !important;
}

body.path-obra .obra-table table.cols-7 td.views-field-field-numero-de-catalogo a {
  position: static !important;
  display: inline !important;
  transform: none !important;
  color: var(--rg-ink) !important;
}

/* thumbnail */
body.path-obra .obra-table table.cols-7 td.views-field-field-work-image {
  width: 7.5rem !important;
  white-space: nowrap !important;
}

body.path-obra .obra-table table.cols-7 .views-field-field-work-image img {
  display: block !important;
  height: 88px !important;
  width: auto !important;
  max-width: 6.5rem !important;
  object-fit: contain !important;
}

/* title */
body.path-obra .obra-table table.cols-7 tbody td.views-field-title {
  min-width: 14rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 1.35 !important;
  color: var(--rg-ink) !important;
}

body.path-obra .obra-table table.cols-7 td.views-field-title a,
body.path-obra .obra-table table.cols-7 td.views-field-title em {
  color: inherit !important;
  font-style: normal !important;
}

/* technique / measurements / years */
body.path-obra .obra-table table.cols-7 tbody td.views-field-field-support {
  min-width: 13rem !important;
  max-width: 20rem !important;
}

body.path-obra .obra-table table.cols-7 tbody td.views-field-field-width,
body.path-obra .obra-table table.cols-7 tbody td.views-field-field-year-finished {
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
}

/* edit: a quiet outlined button, horizontal */
body.path-obra .obra-table table.cols-7 td.views-field-edit-node,
body.path-obra .obra-table table.cols-7 th.views-field-edit-node {
  width: 5rem !important;
  text-align: right !important;
}

body.path-obra .obra-table table.cols-7 td.views-field-edit-node a {
  display: inline-block !important;
  margin: 0 !important;
  width: auto !important;
  transform: none !important;
  padding: 0.3rem 0.8rem !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--rg-ink) !important;
  background: transparent !important;
  border: 1px solid var(--rg-line) !important;
  border-radius: 0 !important;
  text-decoration: none !important;
}

body.path-obra .obra-table table.cols-7 td.views-field-edit-node a:hover {
  background: var(--rg-ink) !important;
  border-color: var(--rg-ink) !important;
  color: #fff !important;
}

/* pager */
body.path-obra .obra-table .pager,
body.path-obra .pager {
  margin: 2rem 0 4rem !important;
  text-align: left !important;
}

body.path-obra .pager .pager-items {
  display: flex !important;
  gap: 0.5rem !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

body.path-obra .pager .pager-item {
  font-size: 0.8rem !important;
  min-width: 2.2rem !important;
  text-align: center !important;
  padding: 0.35rem 0.6rem !important;
  border: 1px solid var(--rg-hairline) !important;
}

body.path-obra .pager .pager-item-active {
  background: var(--rg-ink) !important;
  border-color: var(--rg-ink) !important;
  color: #fff !important;
}

body.path-obra .pager .pager-item a {
  color: var(--rg-ink) !important;
  text-decoration: none !important;
}

/* phone: smaller thumbnails, the table scrolls sideways inside its box */
@media (max-width: 760px) {
  body.path-obra .block-region.region.region-content {
    margin-left: var(--rg-gutter-sm) !important;
    margin-right: var(--rg-gutter-sm) !important;
  }
  body.path-obra .rg-register-title { font-size: 1.5rem !important; }
  body.path-obra .obra-table table.cols-7 .views-field-field-work-image img {
    height: 64px !important;
    max-width: 4.5rem !important;
  }
}

/* ---------------------------------------------------------------------
   12e. ARTWORK FORM (edit page): title back on, image preview + file
   buttons tidied. (An older rule hides the page title on artwork pages
   because the public page shows it in the view.)
   --------------------------------------------------------------------- */
body.page-type-obra:has(form.node-obra-edit-form) .page-title-wrap {
  display: block !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .image-widget {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.6rem 1rem !important;
  padding: 0.4rem 0 !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .image-widget > img {
  flex: 0 0 auto !important;
  width: auto !important;
  height: 88px !important;
  max-width: 7rem !important;
  object-fit: contain !important;
  border: 1px solid var(--rg-hairline) !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .image-widget > .file {
  flex: 0 1 24rem !important;
  min-width: 0 !important;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
  overflow-wrap: anywhere !important;
  color: var(--rg-ink-soft) !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .image-widget > .file a {
  color: var(--rg-ink) !important;
  text-decoration: none !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .image-widget > span:not(.file) {
  flex: 0 0 auto !important;
  font-size: 0.72rem !important;
  color: var(--rg-ink-soft) !important;
  white-space: nowrap !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .js-form-managed-file input.form-submit {
  margin: 0 0 0 auto !important;
  padding: 0.45rem 0.9rem !important;
  height: auto !important;
  line-height: 1.2 !important;
  border: 1px solid var(--rg-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--rg-ink) !important;
  cursor: pointer !important;
}

body form:is(.node-obra-form,.node-obra-edit-form) .js-form-managed-file input.form-submit:hover {
  background: var(--rg-ink) !important;
  border-color: var(--rg-ink) !important;
  color: #fff !important;
}

/* ---------------------------------------------------------------------
   13b. REGISTER: full width on the page grid, column heads upright
   --------------------------------------------------------------------- */
body.path-obra.path-obra #block-xarapro-content,
body.path-obra .region-content .block-content,
body.path-obra .region-content .views-element-container {
  max-width: none !important;
  width: 100% !important;
}

body.path-obra .obra-table table.cols-7 thead th,
body.path-obra .obra-table table.cols-7 thead th a {
  font-style: normal !important;
}

/* ---------------------------------------------------------------------
   13c. REGISTER: the category menu now lives in the content area, between
   the page title and the table. Left-aligned, small caps row.
   --------------------------------------------------------------------- */
/* title (left) and category menu (right) share one line, aligned on the
   text baseline; the table always starts on its own line below */
body.path-obra .block-region.region.region-content {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  justify-content: space-between !important;
}

body.path-obra .rg-register-title {
  flex: 1 1 auto !important;
  margin: 0 1.5rem 1.5rem 0 !important;
}

body.path-obra .region-content #block-xarapro-obrasubmenu {
  display: block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 0 1.5rem auto !important;
  padding: 0 !important;
  align-self: baseline !important;
}

body.path-obra .region-content #block-xarapro-content {
  flex: 0 0 100% !important;
}

body.path-obra .region-content #block-xarapro-obrasubmenu > ul.menu {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 0.4rem 1.6rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.path-obra .region-content #block-xarapro-obrasubmenu > ul.menu > li {
  margin: 0 !important;
  padding: 0 !important;
}

body.path-obra .region-content #block-xarapro-obrasubmenu > ul.menu a {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0.2rem 0 !important;
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  color: var(--rg-ink-soft) !important;
  border-bottom: 2px solid transparent !important;
}

body.path-obra .region-content #block-xarapro-obrasubmenu > ul.menu a:hover,
body.path-obra .region-content #block-xarapro-obrasubmenu > ul.menu a.is-active,
body.path-obra .region-content #block-xarapro-obrasubmenu > ul.menu .menu-item--active-trail > a {
  color: var(--rg-ink) !important;
  border-bottom-color: var(--rg-ink) !important;
}

/* CV: the Collections list runs in two columns (one on small screens) */
.block-views-blockcv-block-6 .views-field-nothing .field-content {
  display: block;
  column-count: 2;
  column-gap: 3rem;
}

@media (max-width: 700px) {
  .block-views-blockcv-block-6 .views-field-nothing .field-content {
    column-count: 1;
  }
}
