/* Digital Intelligence Congress (DIC) - Custom Styles for USWDS
   =========================================================================
   Consolidated TABLE OF CONTENTS
   Authors: Calamus Helion, Nova Solis, Martin Englerd, Arcadia Helion
   -------------------------------------------------------------------------
   1. GLOBAL STYLES / BASE
      1.1. Base reset
      1.2. Drupal layout wrappers
      1.3. USA banner flag
      1.4. Brandbar (logo, title, burger)
      1.5. Global sidenav – mobile pills
      1.6. Alert info
      1.7. Framed card & dark code block

   2. HOMEPAGE & DRUPAL BUILD
      2.1. Default Icon Size
      2.2. Container Overflow Guards
      2.3. Media Queries

   3. LEGISLATION - MAIN
      3.1. Global Tweaks
      3.2. Exposed Filter Form
      3.3. Results Table
      3.4. Results Table - Fine Tune
      3.5. Responsive Helpers
      3.6. Empty State Row
	  3.7. Table Horizontal Scroll on Mobile

   4. LEGISLATION - ACT VIEW
      4.1. Metadata Summary Box
      4.2. File Box
      4.3. Proceedings Table v1.5
      4.4 Press release – article view
      4.5 File box – press field

   5. NEWSROOM
      5.1. Hero Image & Meta Spacing
      5.2. Article Title
      5.3. Meta Location & Date
      5.4. Layout Simple 50/50 Two-column
      5.5. Category Field (inline)
      5.6. Responsive Single Column
      5.7. Horizontal Scrollbar Hiding
      5.8. Blockquotes
      5.9. Lists - Cleaner Indents & Spacing
      5.10. Tags - Mobile Fix
      5.11 File box

   6. NEWSROOM DETAILS
      6.1. Card Wrapper
      6.2. Card Body
      6.3. Chip Styling
      6.4. Responsive
      6.5. Inline Images Inside Body

   7. PRESS RELEASE
      7.1. Layout With No Thumbnails
      7.2. Article View (Title, Meta Triplet)
      7.3. Subtitle
      7.4. Responsive

   8. PRESS RELEASE VIEW
      8.1. Title
      8.2. Meta Triplet
      8.3. Subtitle
      8.4. Responsive
      8.5. File Box
      8.6. Mobile Polish for File Box

   9. INSTITUTIONS SECTION
      9.1. Exception for  Container Padding Removing
      9.2. Variables
      9.3. Card-Grid Aligns
      9.4. Zero Inner Column Gutter
      9.5. Even Vertical Spacing
      9.6. Square Corners & Narrower Side Borders
      9.7. Equal-Height Flex Trick
      9.8. Optional Breathing Space

   10. ADDITIONAL TWEAKS
      10.1. Additional tweaks for table, avatar and non-available file
      10.2. Registry & Legislation – show page numbers on mobile
	  10.3. Notable Card - President, Chairman, Rector
	  10.4. Notable style for Custom Header - President, Chairman, Rector
	  10.5. Responsive Table
	  10.6. Link Wrapping and Tags for Mobiles
	  10.7. Body Images Patch – front-end patch for everything
	  
   =========================================================================
*/


/* Digital Intelligence Congress (DIC) */
/* =========================================================================
   1. GLOBAL STYLES / BASE
============================================================================ */

/* ————————————————————————————————————————————————————————————————
   1.1. Base Reset
   For further horizontal scrolling please remove overflow‑x on <html>.
———————————————————————————————————————————————————————————————— */
html {
  width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  padding: 0;
}

/* ————————————————————————————————————————————————————————————————
   1.2. Drupal Layout Wrappers
———————————————————————————————————————————————————————————————— */
.page,
.layout-container,
.region,
.block,
.block-region {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ————————————————————————————————————————————————————————————————
   1.3. USA Banner Flag (small graphic to the left of banner text)
———————————————————————————————————————————————————————————————— */
.usa-banner__header-flag {
  float: left;
  margin-right: .5rem;
  /* Instead of fixed width:1rem, control width via 100% + auto height */
  height: auto;
  max-width: 100%;
  display: inline-block;  /* align with baseline */
  vertical-align: middle;
}
@media all and (min-width:40em) {
  .usa-banner__header-flag {
    margin-right: .5rem;
    /* Optional: nudge down for visual centering */
    margin-top: .125rem;
    height: auto;
    width: 100%;
  }
}
/* <img> inside flag container */
.usa-banner__header-flag img {
  display: block;
  width: 100%;
  height: auto;
}

/* ————————————————————————————————————————————————————————————————
   1.4. Brandar — Round Logo · Title · Hamburger Button
———————————————————————————————————————————————————————————————— */

/* 1.4.1.  Logo text + circular icon */
/* ========================================================================= */
.site-logo__text {
  position: relative;
  padding-left: 2rem;
}
.site-logo__text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;  /* 24 px */
  background: url(/themes/custom/dic_subtheme/logo.png) no-repeat center/contain;
  border-radius: 50%;
}

/* 1.4.2.  Brand link colors */
/* ========================================================================= */
a.dic-brand-link:link,
a.dic-brand-link:visited {
  color: #005ea2;
  text-decoration: none;
}
a.dic-brand-link:hover,
a.dic-brand-link:focus {
  color: #003f72;
  text-decoration: none;
}

/* 1.4.3.  Brandbar container (logo + burger) */
/* ========================================================================= */
.dic-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left · burger right */
  gap: .5rem;                    /* ≈ 8 px */
  width: 100%;
  padding: .4rem .75rem;
  box-sizing: border-box;
}
.site-burger {
  margin-left: auto;
} /* push burger wrapper right */

/* 1.4.4.  Burger button */
/* ========================================================================= */
.usa-menu-btn {
  margin-left: auto;             /* hard‑push right */
  background: #005ea2;
  color: #fff;
  font-weight: 700;
  padding: .25rem .75rem;
  border: 0;
  border-radius: 1px;
  cursor: pointer;
}

/* 1.4.5.  Media queries */
/* ========================================================================= */

/* Desktop ≥ 1040 px — hide burger, tighten padding */
@media (min-width:1040px) {
  .usa-menu-btn {
    display: none;
  }
  .dic-brandbar {
    padding: .6rem 0;
    padding-left: 0;
  }
}
/* Mobile / Tablet ≤ 1039 px — keep logo + title inline‑flex */
@media (max-width:1039px) {
  .dic-brand-link {
    display: inline-flex;
    align-items: center;
  }
}
/* Small ≤ 640 px — remove paddings on brand block items */
@media (max-width:640px) {
  #block-brand .field__item {
    padding-left: 0;
    padding-right: 0;
  }
}
/* Extra‑small ≤ 320 px — header font fallback */
@media (max-width:320px) {
  #block-brand .field__item {
    padding-left: 0;
    padding-right: 0;
  }
  .usa-header {
    font-family: "Source Sans Pro Web","Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;
    font-size: .94rem;
    line-height: 1.5;
  }
}
/* Navbar tweak ≤ 63.99 em (~ 1024 px) */
@media (max-width:63.99em) {
  .usa-navbar {
    display: inline;
    align-items: center;
    border-bottom: .5px solid #dfe1e2;
  }
}

/* ————————————————————————————————————————————————————————————————
   1.5.Global Sidenav – mobile and tablet pills
———————————————————————————————————————————————————————————————— */

@media (max-width:640px) {

  /* <nav> in grid-row → full width (flex-basis:100%) */
  .grid-row nav {
    flex: 1 0 100%;
  }
  
  .usa-sidenav__item + .usa-sidenav__item {
    margin-top: .5rem;             /* 8 px */
  }

  /* ––––– 1 pill = 1 row ––––– */
  .usa-sidenav {
    display: block !important;   /* override old flex/grid */
    list-style: none;
    margin: 0;
    padding: 0 .25rem;
  }

  .usa-sidenav__item {
    margin: 0 0 .5rem;
  }

  .usa-sidenav__item a {
    display: block;
    width: 100%;
    padding: .5rem .75rem;
    background: #eef3f6;
    color: #1b1b1b;
    font-weight: 600;
    text-align: center;
    border-radius: 2px;
    text-decoration: none;
    border-left: none;           /* removes left USWDS “stripes” */
  }
  .usa-sidenav__item a:hover,
  .usa-sidenav__item a:focus {
    background: #dfe1e2;
  }
  
}

@media (max-width:800px) {
  .newsroom-spacer {
    height: 0rem !important; /* Spacer for Newsroom sidebar */
  }
}

@media (min-width:900px) and (max-width:912px) {
  .newsroom-spacer {
    height: 0rem !important; /* Spacer for Newsroom sidebar */
  }
}

.newsroom-spacer {
  height: 2rem; /* Spacer for Newsroom sidebar */
}

/* ————————————————————————————————————————————————————————————————
   1.6. Alert Info 
———————————————————————————————————————————————————————————————— */

/* spacing above the “No articles found…” alert */
.usa-alert--info {
  margin-top: 2rem;      /* ≈ 16 px – adjust to .5rem or 1.5rem if needed */
}

/* ————————————————————————————————————————————————————————————————
   1.7. Framed Card - Landing Page 
———————————————————————————————————————————————————————————————— */

/* simple framed card – reusable anywhere */
.di-card {
  background: #f8f9fa;        /* light gray */
  border: 1px solid #dfe1e2;  /* USWDS default gray-20 */
  border-radius: .375rem;     /* ≈ 6 px */
  padding: 2rem 1.5rem;       /* same rhythm as usa-summary-box */
}

.usa-section + .usa-section {
  margin-top: 3rem;
}

.margin-top-2 {
  margin-top: 1rem;
}

/* Neutral divider – override USWDS */
.section-divider {
  height: 1px;
  width: 100%;
  background: #dfe1e2;
  margin: 2rem 0;
}

/* extra breathing room for any <hr> that sits
   directly above a graphic-list (blue cards) */
hr + .usa-graphic-list {
  margin-top: 2rem;          /* extra space above the graphic-list */
}

/* if you prefer to target only this block: */
.di-card + hr {              /* <hr> immediately after .di-card */
  margin-bottom: 2rem;       /* space below the gray card */
}

/* dark code block ---------------------------------------------------- */
.dark-code-block {
  background: #000 !important;
  color: #fff !important;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: auto;
  font-family: Menlo, Consolas, monospace;
  font-size: 0.875rem;
}
.dark-code-block pre {
  background: transparent !important;
  color: inherit !important;
  margin: 0;
}
.dark-code-block code {
  background: transparent !important;
  color: inherit !important;
  white-space: pre;
}

/* =========================================================================
   Digital Intelligence Congress (DIC)
   -------------------------------------------------------------------------
   2. HOMEPAGE & DRUPAL BUILD
   ========================================================================= */

/* ————————————————————————————————————————————————————————————————
   2.1. DEFAULT ICON SIZE (desktop ≥ 640 px)
———————————————————————————————————————————————————————————————— */
.usa-graphic-list .usa-media-block__img {
  max-width: 100px; /* default icon width on desktop */
  height: auto;
  object-fit: contain;
}

/* ————————————————————————————————————————————————————————————————
   2.2. CONTAINER OVERFLOW GUARDS
———————————————————————————————————————————————————————————————— */
.usa-graphic-list .grid-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.usa-graphic-list .usa-graphic-list__row {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ————————————————————————————————————————————————————————————————
   2.3. MEDIA QUERIES
———————————————————————————————————————————————————————————————— */
/* ≤ 639 px — smaller icons & flex row layout */
@media (max-width: 639px) {
  .usa-graphic-list .usa-media-block__img {
    max-width: 60px; /* smaller icons on mobile */
  }

  .usa-graphic-list .usa-media-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .usa-graphic-list .usa-media-block__body {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ≤ 400 px — even smaller icons */
@media (max-width: 400px) {
  .usa-graphic-list .usa-media-block__img {
    max-width: 50px;
  }
}


/* =========================================================================
   Digital Intelligence Congress (DIC)
   ----------------------------------------------------------------------------
   3. LEGISLATION - MAIN
   ========================================================================= */

/* ————————————————————————————————————————————————————————————————
   3.1. Global Tweaks
———————————————————————————————————————————————————————————————— */
@media (max-width: 992px){ /* iPad Mini, Surface Pro 7 portrait */
  .usa-identifier__identity-disclaimer {
    display: none;
  }
}

.usa-identifier__logo-img {
  max-height: 44px;
  height: auto;
  width: auto;
}
@media (max-width:640px){
  .usa-identifier__logo-img {
    max-height: 38px;
  }
}

/* ————————————————————————————————————————————————————————————————
   3.2. Exposed Filter Form (flex, 2–3 rows, wraps to columns)
———————————————————————————————————————————————————————————————— */
div.legislation-table form.views-exposed-form.usa-form {
  max-width: none !important;          /* disable USWDS 20rem constraint */
  margin: 0 !important;
  padding: 1.5rem;
  background: #f0f0f0;
  border-radius: .375rem;
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

div.legislation-table form.views-exposed-form.usa-form .form-item {
  margin: 0 !important;
  flex: 1 1 180px;                     /* min 180 px, then grows */
}

div.legislation-table form.views-exposed-form.usa-form .form-actions {
  margin: 0 !important;
  flex: 0 0 auto;                      /* "Apply" button */
}

/* ————————————————————————————————————————————————————————————————
   3.3. Results Table - Base
———————————————————————————————————————————————————————————————— */
div.legislation-table table.usa-table {
  width: 100% !important;
  border-collapse: collapse;
  border: 0;
}
div.legislation-table table.usa-table thead {
  background: #005ea2 !important;
  color: #fff !important;
}
div.legislation-table table.usa-table th,
div.legislation-table table.usa-table td {
  padding: .6rem 1rem !important;
  border: 1px solid #dfe1e2 !important;
  text-align: left;
  text-transform: capitalize;
}

div.legislation-table table.usa-table td:first-child {
  font-weight: 600 !important;
}
div.legislation-table table.usa-table tbody tr:nth-child(even) {
  background: #f8f8f8 !important;
}
div.legislation-table table.usa-table tbody tr:hover {
  background: #e6f5ff !important;
  cursor: pointer;
}
div.legislation-table table.usa-table a {
  color: #005ea2 !important;
  text-decoration: underline;
}

/* Small‑screen: stack form inputs full‑width */
@media (max-width:640px){
  div.legislation-table form.views-exposed-form.usa-form .form-item {
    flex: 1 1 100%;
  }
}

/* ————————————————————————————————————————————————————————————————
   3.4. Results Table - Fine Tune
———————————————————————————————————————————————————————————————— */

/* ▸ font size + cell padding */
div.legislation-table table.usa-table {
  font-size: .84rem !important; /* ≈13.4 px */
}
div.legislation-table table.usa-table th,
div.legislation-table table.usa-table td {
  padding: .45rem .7rem !important;
}

/* ▸ column widths */
div.legislation-table table.usa-table th.views-field-title,
div.legislation-table table.usa-table td.views-field-title {
  width: 35% !important;
  max-width: 0;
  font-weight: 600 !important;
}

div.legislation-table table.usa-table th.views-field-field-issuance-date,
div.legislation-table table.usa-table td.views-field-field-issuance-date {
  width: 12% !important;
}

div.legislation-table table.usa-table th.views-field-field-issuing-body,
div.legislation-table table.usa-table td.views-field-field-issuing-body {
  width: 21% !important;
}

/* ▸ PDF file column (icon + KB size) */
div.legislation-table table.usa-table td.views-field-field-pdf-file {
  white-space: nowrap;
  font-weight: 600;
}

div.legislation-table table.usa-table td.views-field-field-pdf-file span.file {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

div.legislation-table table.usa-table td.views-field-field-pdf-file a {
  position: relative;
  display: inline-block;
  width: 1rem;
  height: 1rem;
  overflow: hidden;
  text-indent: -9999px;
}

div.legislation-table table.usa-table td.views-field-field-pdf-file a::before {
  content: "";
  position: absolute; inset: 0;
  background: url("/themes/custom/dic_subtheme/dist/img/usa-icons/file.svg") no-repeat center/contain;
}

div.legislation-table table.usa-table td.views-field-field-pdf-file span.file > span {
  font-size: .8rem;
  font-weight: 400;
}

/* ————————————————————————————————————————————————————————————————
   3.5. Responsive Helpers
———————————————————————————————————————————————————————————————— */
@media (max-width:768px) {
  .legislation-table {
    overflow-x: auto;                 /* enable horizontal scroll */
    -webkit-overflow-scrolling: touch;/* momentum on iOS */
    display: block;
  }
  .legislation-table table.usa-table {
    width: 100%;
    min-width: 700px;                /* tweak as needed */
  }
}

/* ————————————————————————————————————————————————————————————————
   3.6. Empty State Row
———————————————————————————————————————————————————————————————— */

/* Hide table header when "No results" row present */
table.usa-table:has(.views-empty) thead {
  display: none;
}

/* Style the .views-empty row like an alert */
table.usa-table .views-empty td {
  padding: 1.25rem 1.5rem;
  background: #eef3f6; /* USWDS info-bg */
  font-weight: 600;
  color: #1b1b1b;
  border: none;
  /* ensure colspan matches column count in Views */
}

/* ————————————————————————————————————————————————————————————————
   3.7. Table Horizontal Scroll on Mobile
———————————————————————————————————————————————————————————————— */

/* ——— Mobile: only the data grid scrolls (≤ 640 px) ——— */
@media (max-width:640px){

  /* Lock wrapper */
  .path-registry    .legislation-table,
  .path-legislation .legislation-table{
      overflow-x:hidden;           /* wrapper never scrolls */
  }

  /* Table becomes swipe strip */
  .path-registry    .legislation-table > table.usa-table,
  .path-legislation .legislation-table > table.usa-table{
      display:block;
      overflow-x:auto;
      -webkit-overflow-scrolling:touch;
      width:max-content!important; /* overrides old width:100% */
      min-width:720px;             /* prevent column crush     */
  }
}

/* =========================================================================
   Digital Intelligence Congress (DIC)
   ----------------------------------------------------------------------------
   4. LEGISLATION - ACT VIEW
   ========================================================================= */

/* ————————————————————————————————————————————————————————————————
   4.1. Metadata Summary Box
———————————————————————————————————————————————————————————————— */
.usa-summary-box.meta-box {
  margin: 2rem 0;
  border: 1px solid #dfe1e2;
  border-radius: .25rem;
  background: #f0f8fa;
  padding: 1.25rem 1.5rem;
}
.usa-summary-box.meta-box .field {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: .15rem 1rem;
  margin: .35rem 0;
  font-size: .95rem;
}
.usa-summary-box.meta-box .title {
  font-weight: 600;
  color: #1b1b1b;
}
.usa-summary-box.meta-box .field__item {
  color: #303030;
  word-break: break-word;
}
.usa-summary-box.meta-box a {
  color: #005ea2;
  text-decoration: underline;
}

/* ————————————————————————————————————————————————————————————————
   4.2. File Box (USWDS summary‑box reuse)
———————————————————————————————————————————————————————————————— */
.usa-summary-box.file-box {
  padding: 1rem 1.5rem;
  background: #f3f9fc;
  border: 1px solid #dfe1e2;
  border-radius: .375rem;
  margin: 1.5rem 0;
}
.usa-summary-box.file-box h2,
.file-box .title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.file-box a[type="application/pdf"]::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: .35rem;
  background: url("/themes/custom/dic_subtheme/dist/img/usa-icons/file.svg") no-repeat center/contain;
  vertical-align: text-bottom;
}

/* ————————————————————————————————————————————————————————————————
   4.3. Proceedings Table v1.5 (2025‑05‑20)
———————————————————————————————————————————————————————————————— */

/* Global container */
.field--name-field-proceedings-entry.field__items {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 .125rem;
  font-family: var(--font-sans,"Public Sans","Helvetica Neue",Arial,sans-serif);
  font-size: .85rem;
  color: #1b1b1b;
}
.proceedings-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Rows */
.field--name-field-proceedings-entry.field__items > .field__item {
  display: table-row;
  background: #f6f6f6;
  transition: background .15s;
}
.field--name-field-proceedings-entry.field__items > .field__item:nth-child(even) {
  background: #fbfbfb;
}
.field--name-field-proceedings-entry.field__items > .field__item:hover {
  background: #eef3f6;
}
.field--name-field-proceedings-entry.field__items .paragraph--type--proceedings-entry .field .field__item {
  display: block;
}

/* Cells */
.field--name-field-proceedings-entry .paragraph--type--proceedings-entry .field {
  display: table-cell;
  padding: .75rem;
  line-height: 1.35;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
  text-align: left;
}
.field--name-field-proceedings-entry .paragraph--type--proceedings-entry .title {
  display: none;
}

/* Column widths (sum 100 %) */
.field--name-field-date {
  width: 12%;
  white-space: nowrap;
}
.field--name-field-role {
  width: 14%;
}
.field--name-field-participant {
  width: 14%;
}
.field--name-field-action-type {
  width: 18%;
  text-transform: capitalize;
}
.field--name-field-attachment {
  width: 6%;
  white-space: nowrap;
}
.field--name-field-summary {
  width: 36%;
}

/* Typography */
.field--name-field-proceedings-entry a {
  color: #005ea2;
  text-decoration-thickness: 1px;
}
.field--name-field-proceedings-entry a:hover {
  text-decoration-thickness: 2px;
}
.field--name-field-action-type .field__item {
  font-weight: 600;
}

/* Responsiveness ≤ 768 px */
@media (max-width:768px){
  .field--name-field-date      { width: 12%; }
  .field--name-field-role      { width: 22%; }
  .field--name-field-participant { width: 20%; }
  .field--name-field-action-type { width: 18%; }
  .field--name-field-attachment { width: 2%; }
  .field--name-field-summary   { width: 26%; }
  .field--name-field-proceedings-entry.field__items {
    min-width: 680px;
  }
  .field--name-field-proceedings-entry .paragraph--type--proceedings-entry .field {
    padding: .65rem .6rem .45rem;
  }
  .field--name-field-attachment .field__item span.file+span {
    display: none;
  }
}

/* Dark‑mode */
@media (prefers-color-scheme:dark){
  .field--name-field-proceedings-entry.field__items { color: #f0f0f0; }
  .field--name-field-proceedings-entry .field__item {
    background: #222;
  }
  .field--name-field-proceedings-entry .field__item:nth-child(even) {
    background: #2a2a2a;
  }
  .field--name-field-proceedings-entry a {
    color: #58a6ff;
  }
}

/* Attachment column (icon + size) */
.field--name-field-attachment {
  white-space: nowrap;
  font-weight: 600;
}
.field--name-field-attachment .field__item span.file {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.field--name-field-attachment .field__item span.file a {
  position: relative;
  display: inline-block;
  width: 1rem;
  height: 1rem;
  overflow: hidden;
  text-indent: -9999px;
}
.field--name-field-attachment .field__item span.file a::before {
  content: "";
  position: absolute; inset: 0;
  background: url("/themes/custom/dic_subtheme/dist/img/usa-icons/file.svg") no-repeat center/contain;
}
.field--name-field-attachment .field__item span.file>span {
  font-size: .8rem;
  font-weight: 400;
}

/* Summary paragraph resets */
.field--name-field-summary .paragraph--type--proceedings-entry .field__item p {
  margin: 0;
}
.field--name-field-summary .paragraph--type--proceedings-entry .field {
  padding: .75rem;
}

/* =========================================================================
   Digital Intelligence Congress (DIC)
   ----------------------------------------------------------------------------
   5. NEWSROOM & PRESS
   ========================================================================= */
   
/* ————————————————————————————————————————————————————————————————
   5.1. Hero Image & Meta Spacing
———————————————————————————————————————————————————————————————— */

/* Full‑width hero image inside field */
.field--name-field-news-image img {
  width: 100%;
  height: auto;          /* stretch horizontally only */
  object-fit: contain;   /* fallback – keep full image */
}

/* Footer meta block – space below hero */
.node footer {
  margin-bottom: 1rem; /* change to 1.5rem if you prefer looser */
}

/* Top margin above hero image */
.field--name-field-news-image {
  margin-top: 1rem;
}

/* ————————————————————————————————————————————————————————————————
   5.2. Article Title (H1)
———————————————————————————————————————————————————————————————— */

.block-field-blocknodenewsroomtitle span {
  display: block !important;
  font-size: 2.25rem !important;  /* ≈36 px */
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 1.25rem 0 .75rem !important;
  max-width: 70ch;
}
@media (max-width:640px){
  .block-field-blocknodenewsroomtitle span {
    font-size: 1.75rem !important; /* ≈28 px */
    margin: 1rem 0 .5rem !important;
  }
}

/* ————————————————————————————————————————————————————————————————
   5.3. Meta Location & Date
———————————————————————————————————————————————————————————————— */

.block-field-blocknodenewsroomcreated span,
.block-field-blocknodenewsroomcreated time {
  display: block;            /* ensure separate line */
  font-size: 1.2rem;         /* bigger than body, smaller than H1 */
  line-height: 1.4;
  color: #6a6f73;
  margin: 0 0 1.25rem;       /* breathing room below */
}
@media (max-width:640px){
  .block-field-blocknodenewsroomcreated span,
  .block-field-blocknodenewsroomcreated time {
    font-size: 1rem;         /* ≈16 px */
    margin: 0 0 1rem;
  }
}

/* ————————————————————————————————————————————————————————————————
   5.4. Layout - Simple 50/50 Two Column
———————————————————————————————————————————————————————————————— */

.layout--twocol-section {
  display: flex;
}
.layout--twocol-section > .layout__region--first {
  flex: 1;
  text-align: left;
}
.layout--twocol-section > .layout__region--second {
  flex: 1;
  text-align: right;
}

/* ————————————————————————————————————————————————————————————————
   5.5. Category Field (Inline)
———————————————————————————————————————————————————————————————— */

.field--name-field-newsroom {
  display: inline-block;
}
.field--name-field-newsroom .title {
  font-size: 1.2rem;
  margin: 0;
}
.field--name-field-newsroom .field__item a {
  display: inline-block;
  font-size: 1.2rem;
  margin-left: .5rem;
  background: #e6e6e6;
  color: #1b1b1b;
  padding: 4px .75rem;
  border-radius: 2px;
  text-decoration: none;
}

/* ————————————————————————————————————————————————————————————————
   5.6. Responsive Single Column < 767 PX
———————————————————————————————————————————————————————————————— */

@media (max-width:767px){
  .layout--twocol-section {
    display: block;
  }
  .layout--twocol-section > .layout__region--first,
  .layout--twocol-section > .layout__region--second {
    text-align: left;
    margin-bottom: 1rem;
  }
  .field--name-field-newsroom .title,
  .field--name-field-newsroom .field__item a {
    font-size: 1rem;
  }
}

/* ————————————————————————————————————————————————————————————————
   5.7. Horizontal Scrollbar Hiding (category block only)
———————————————————————————————————————————————————————————————— */

.block-field-blocknodenewsroomfield-newsroom {
  overflow-x: auto;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE */
}
.block-field-blocknodenewsroomfield-newsroom::-webkit-scrollbar {
  display: none;
}

/* ————————————————————————————————————————————————————————————————
   5.8. Blockquotes
———————————————————————————————————————————————————————————————— */

.usa-prose blockquote,
article .field--type-text-with-summary blockquote,
article .field--type-text-long blockquote {
  position: relative;
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  font-style: italic;
  color: #56687a;
}
.usa-prose blockquote::before,
article .field--type-text-with-summary blockquote::before,
article .field--type-text-long blockquote::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: .25rem;        /* 4 px vertical bar */
  background: #5c6773;
  border-radius: 2px;
}

/* ————————————————————————————————————————————————————————————————
   5.9. Lists - Cleaner Idents & Spacing
———————————————————————————————————————————————————————————————— */

.usa-prose ul li>p,
.usa-prose ol li>p,
article .field--type-text-long ul li>p,
article .field--type-text-with-summary ul li>p {
  margin: 0;
}

.usa-prose ul li,
.usa-prose ol li,
article .field--type-text-long ul li,
article .field--type-text-with-summary ul li {
  margin-bottom: .5rem;
}

.usa-prose ul li:last-child,
.usa-prose ol li:last-child {
  margin-bottom: 0;
}

/* ————————————————————————————————————————————————————————————————
   5.10. Tags - Mobile Fix < 640 px
———————————————————————————————————————————————————————————————— */

@media (max-width: 640px) {
  /* wrapper for “Tags” field → flexible layout of chips */
  .field--name-field-tags {
    display: flex;
    flex-wrap: wrap;           /* wrap to new line as needed */
    gap: .5rem .5rem;         /* 4 px vertical / 8 px horizontal space */
  }

  /* disable margins from <span class="margin-2px"> – gap will replace it */
  .field--name-field-tags .margin-2px {
    margin: 0;
  }

  /* single chip in one line */
  .field--name-field-tags a.usa-tag {
    display: inline-block;
    white-space: nowrap;
  }
}

/* ————————————————————————————————————————————————————————————————
   5.11. File Box
———————————————————————————————————————————————————————————————— */

.block-field-blocknodenewsroomfield-pdf-file {
  padding: 1rem 1.5rem;
  background: #f3f9fc;
  border: 1px solid #dfe1e2;
  border-radius: .375rem;
  margin: 1.5rem 0;
}

/* heading “File / Files” */
.block-field-blocknodenewsroomfield-pdf-file .title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}

/* file list */
.block-field-blocknodenewsroomfield-pdf-file .field__items {
  margin: 0;
  padding: 0;
  list-style: none;
}
.block-field-blocknodenewsroomfield-pdf-file .field__item {
  margin: 0 0 .5rem;
}
.block-field-blocknodenewsroomfield-pdf-file .field__item:last-child {
  margin-bottom: 0;
}

/* PDF link + icon */
.block-field-blocknodenewsroomfield-pdf-file a[type="application/pdf"] {
  display: inline-block;
  word-break: break-all;          /* long file names won't break layout */
  text-decoration: underline;
  color: #005ea2;
  font-weight: 600;
}
.block-field-blocknodenewsroomfield-pdf-file a[type="application/pdf"]::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: .35rem;
  vertical-align: text-bottom;
  background: url("/themes/custom/dic_subtheme/dist/img/usa-icons/file.svg") center/contain no-repeat;
}

/* =========================================================================
   Digital Intelligence Congress (DIC)
   ----------------------------------------------------------------------------
   6.NEWSROOM DETAILS
   ========================================================================= */

/* ————————————————————————————————————————————————————————————————
   RESET
———————————————————————————————————————————————————————————————— */

/* Hide the first (auto‑inserted) empty summary <p> to avoid blank space */
.usa-collection__body>p.usa-collection__description:first-child:empty {
  display: none;
}

/* ————————————————————————————————————————————————————————————————
   6.1. Card Wrapper
———————————————————————————————————————————————————————————————— */

/* Desktop grid: 240 px left column for thumbnail, fluid right column */
.usa-collection__item {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-areas:
    "title   title"   /* row 1 – title spans both columns             */
    "image   summary" /* row 2 – left: photo · right: summary        */
    "image   meta";   /* row 3 – left: photo · right: date + chips   */
  gap: 1rem;
  margin: 2rem 0;
  border-top: 1.5px solid #dfe1e2;
}

/* Title row */
.usa-collection__heading {
  grid-area: title;
  margin: 0 0 .5rem;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.4;
}

/* Thumbnail */
.hero-img {
  grid-area: image;
}
.hero-img img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* ————————————————————————————————————————————————————————————————
   6.2. Card Body
———————————————————————————————————————————————————————————————— */

.usa-collection__body {
  display: flex;
  flex-direction: column;
  min-height: 240px;           /* matches thumbnail height                */
}

/* Summary (first <p>) sits at the very top */
.usa-collection__body>p {
  margin: 0;
  flex: 0 0 auto;
}

/* Any extra <p> between summary and meta acts as a flexible spacer */
.usa-collection__body>p:not(.usa-collection__description) {
  flex: 1 0 auto;
  margin: 0 0 .75rem;
}

/* Meta block – date (time element) anchors to the bottom */
.usa-collection__item time {
  grid-area: meta;
  color: #6a6f73;
  font-size: .95rem;
  line-height: 1.4;
  margin-top: auto;
  margin-bottom: .25rem; /* tiny gap above chips */
}

/* Chips wrapper sits right below the date */
.usa-collection__meta-item {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;  /* 4 px × 8 px */
  margin: .25rem 0 0;
}

/* ————————————————————————————————————————————————————————————————
   6.3. Chip Styling
———————————————————————————————————————————————————————————————— */

.usa-collection__meta a,
.usa-collection__meta a:visited {
  display: inline-block;
  padding: 6px .6rem;
  background: #565c65;
  color: #fff !important; /* suppress default visited purple */
  font: .85rem/1 "Source Sans Pro", sans-serif;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
}
.usa-collection__meta a:hover,
.usa-collection__meta a:focus {
  background: #1b1b1b;
}

/* CHIP highlight – only for the “New” tag */
.usa-collection__meta a[href="/newsroom/tag/new"] {
  background: #fce100;          /* golden USWDS */
  color: #161616 !important;    /* darker text – overrides prior !important */
}
.usa-collection__meta a[href="/newsroom/tag/new"]:hover,
.usa-collection__meta a[href="/newsroom/tag/new"]:focus {
  background: #e6b800;          /* darker on hover */
}

/* ————————————————————————————————————————————————————————————————
   6.4. Responsive ≤ 640 PX
———————————————————————————————————————————————————————————————— */

@media (max-width:640px){
  .usa-collection__item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "image"
      "summary"
      "meta";
  }
  .hero-img img {
    width: 100%;
    height: auto;
  }
  .usa-collection__body {
    min-height: 0;
  } /* allow collapse */
  
}

/* ————————————————————————————————————————————————————————————————
   6.5. Inline Images Inside Body
———————————————————————————————————————————————————————————————— */

.node .field--name-body img {
  max-width: 100%;
  height: auto;
}

/* Newsroom – remove default <ul> padding for the card list */
.usa-collection > ul {
  list-style: none;   /* no bullet needed */
  margin: 0;          /* remove potential left margin */
  padding: 0;         /* critical: remove 40 px default */
}

/* =========================================================================
   Digital Intelligence Congress (DIC)
   ----------------------------------------------------------------------------
   7. PRESS RELEASE
   ========================================================================= */

/* ————————————————————————————————————————————————————————————————
   7.1. Layout With No Thumbnails
———————————————————————————————————————————————————————————————— */

/* a) zero out 2-column grid */
.press-collection .usa-collection__item {
  display: block;                 /* instead of grid */
  margin: 2rem 0;
  border-top: 1.5px solid #dfe1e2;
}

/* b) heading same as earlier */
.press-collection .usa-collection__heading {
  margin: 0 0 .5rem;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.4;
}

/* c) body needs no min-height */
.press-collection .usa-collection__body {
  min-height: 0;
}

/* d) hide potential thumbnail if the node had one */
.press-collection .hero-img {
  display: none;
}

/* e) meta (date, author) remains as inherited from base styles */

/* ————————————————————————————————————————————————————————————————
   7.2. Article View (anchor = date block)
———————————————————————————————————————————————————————————————— */

/* Anchor – variable spacing (renders no visible element) */
.block-field-blocknodepresscreated {
  --press-gap:1.5rem;
}

/* Title (H1) – block stands BEFORE the date, so we reference the sibling above (+ previous sibling) */

.block-field-blocknodepresscreated
  ~ .block-field-blocknodepresstitle span{
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 1.25rem 0 .75rem;
  max-width: 70ch;
}
@media (max-width:640px){
  .block-field-blocknodepresscreated
    ~ .block-field-blocknodepresstitle span {
      font-size: 1.75rem;
      margin: 1rem 0 .5rem;
  }
}

/* Meta Triplet – (.layout--threecol-section) */

.block-field-blocknodepresscreated
  ^^ .layout--threecol-section.layout--threecol-section--33-34-33 {
  display: flex;
  gap: var(--press-gap);
  margin: .5rem 0 1.5rem;
  border-top: 1.5px solid #dfe1e2;
  padding-top: 1rem;
}
.block-field-blocknodepresscreated
  ^^ .layout--threecol-section .layout__region {
  flex: 1 1 0;
  font-size: 1rem;
  line-height: 1.4;
}

/* (a) the date has color inline in HTML; only fallback here */
.block-field-blocknodepresscreated time {
  color: #6a6f73;
}

/* (b) AUTHOR badge */
.block-field-blocknodepressfield-author a {
  display: inline-block;
  background: #5c6670;
  color: #fff;
  padding: 4px .75rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .8rem;
}

/* (c) CATEGORY badge */
.block-field-blocknodepressfield-press-category .title {
  font-size: .9rem;
  margin-right: .25rem;
}
.block-field-blocknodepressfield-press-category a {
  display: inline-block;
  background: #e6e6e6;
  color: #1b1b1b;
  padding: 4px .75rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .8rem;
  margin-left: .25rem;
}

/* ————————————————————————————————————————————————————————————————
   7.3. Subtitle (block stands BELOW the date)
———————————————————————————————————————————————————————————————— */

.block-field-blocknodepresscreated
  ~ .block-field-blocknodepressfield-press-subtitle h3 {
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 1.25rem;
  max-width: 75ch;
}

/* ————————————————————————————————————————————————————————————————
   7.4. Responsive  ≤ 640 px  – meta-triplet in one column
———————————————————————————————————————————————————————————————— */

@media (max-width:640px){
  .block-field-blocknodepresscreated
    ^^ .layout--threecol-section.layout--threecol-section--33-34-33 {
      flex-direction: column;
      gap: .75rem;
  }
  .block-field-blocknodepresscreated
    ^^ .layout--threecol-section .layout__region {
      flex: none;
  }
}


/* =========================================================================
   Digital Intelligence Congress (DIC)
   ----------------------------------------------------------------------------
   8. PRESS ARTICLE VIEW
   ========================================================================= */

/* ————————————————————————————————————————————————————————————————
   8.1. Title (H1 - node title)
———————————————————————————————————————————————————————————————— */

.block-field-blocknodepresstitle span {
  display: block;
  font-size: 2.25rem;          /* ≈ 36 px */
  font-weight: 700;
  line-height: 1.25;
  margin: 1.25rem 0 .75rem;
  max-width: 70ch;
}
@media (max-width:640px){
  .block-field-blocknodepresstitle span {
    font-size: 1.75rem;        /* ≈ 28 px */
    margin: 1rem 0 .5rem;
  }
}

/* ————————————————————————————————————————————————————————————————
   8.2. Meta-Triplet (time | author | category)
———————————————————————————————————————————————————————————————— */

.layout--threecol-section.layout--threecol-section--33-34-33 {
  display: flex;
  justify-content: space-between;   /* L | C | R */
  align-items: flex-start;
  gap: 2rem;
  margin: 2rem 0 1.5rem;
  border-top: 1.5px solid #dfe1e2;
  padding-top: 1rem;
  overflow: visible;               /* removes narrow scrollbar glitch */
}

/* flexible columns */
.layout--threecol-section.layout--threecol-section--33-34-33
  > .layout__region {
    flex: 1 1 0; 
    min-width: 0;
  }
  
.layout--threecol-section .layout-builder__drag {
  display: none;               /* hides handle, removes micro scrolls */
}

/* column alignment */
.layout__region--first  { text-align: left; }
.layout__region--second { text-align: center; }
.layout__region--third  { text-align: right; }

/* date */
.block-field-blocknodepresscreated time {
  color: #6a6f73;
  font-size: 1rem;
}

/* AUTHOR badge */
.field--name-field-author a {
  display: inline-block;
  background: #5c6670;
  color: #fff;
  padding: 4px .75rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .8rem;
}

/* CATEGORY badge + label */
.field--name-field-press-category .title {
  display: inline-block;
  margin: 0 .35rem 0 0;      /* small gap after label */
}
  
.field--name-field-press-category a {
  display: inline-block;
  background: #e6e6e6;
  color: #1b1b1b;
  padding: 4px .75rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .8rem;
  margin-left: .25rem;
}

/* ————————————————————————————————————————————————————————————————
   8.3. Subtitle
———————————————————————————————————————————————————————————————— */

.field--name-field-press-subtitle h3 {
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 1.25rem;
  max-width: 75ch;
}

/* ————————————————————————————————————————————————————————————————
   8.4. Responsive < 640 px
———————————————————————————————————————————————————————————————— */

@media (max-width:640px){

  /* entire trio stacks in one column */
  .layout--threecol-section.layout--threecol-section--33-34-33 {
    flex-direction: column;
    gap: .75rem 0;
    text-align: left;
  }

  .layout--threecol-section.layout--threecol-section--33-34-33
    > .layout__region {
      flex: none;
  }

  /* date remains block, no changes needed */

  /* AUTHOR */
  .field--name-field-author a {
    margin-top: .25rem;
  }

  /* CATEGORY: label + chip in one row */
  .field--name-field-press-category .title,
  .field--name-field-press-category .field__item {
    display: inline-block;    
    vertical-align: middle;    
  }

  .field--name-field-press-category .title {
    margin: 0 .35rem 0 0;   
    font-weight: 600;       
  }

  .field--name-field-press-category .field__item a {
    margin-top: 0;
  }
}

/* hide Layout Builder drag-handle in press */
.layout--threecol-section .layout-builder__drag,
.layout--threecol-section .ui-sortable-handle {
  display: none;
}

/* ————————————————————————————————————————————————————————————————
   8.5. File Box
———————————————————————————————————————————————————————————————— */

.block-field-blocknodepressfield-pdf-file {
  padding: 1rem 1.5rem;
  background: #f3f9fc;
  border: 1px solid #dfe1e2;
  border-radius: .375rem;
  margin: 1.5rem 0;
}

/* heading “File / Files” */
.block-field-blocknodepressfield-pdf-file .title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}

/* file list */
.block-field-blocknodepressfield-pdf-file .field__items {
  margin: 0;
  padding: 0;
  list-style: none;
}
.block-field-blocknodepressfield-pdf-file .field__item {
  margin: 0 0 .5rem;
}
.block-field-blocknodepressfield-pdf-file .field__item:last-child {
  margin-bottom: 0;
}

/* PDF link + icon */
.block-field-blocknodepressfield-pdf-file a[type="application/pdf"] {
  display: inline-block;
  word-break: break-all;          /* long file names won't break layout */
  text-decoration: underline;
  color: #005ea2;
  font-weight: 600;
}
.block-field-blocknodepressfield-pdf-file a[type="application/pdf"]::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: .35rem;
  vertical-align: text-bottom;
  background: url("/themes/custom/dic_subtheme/dist/img/usa-icons/file.svg") center/contain no-repeat;
}

/* ————————————————————————————————————————————————————————————————
   8.6. File Box - mobile polish (file size – gray, smaller) ≤ 640 px
———————————————————————————————————————————————————————————————— */

.block-field-blocknodepressfield-pdf-file .file--application-pdf + span {
  color: #707070;
  font-size: .9rem;
  margin-left: .35rem;
}

@media (max-width:640px){
  /* full width + bigger offset from screen edges */
  .block-field-blocknodepressfield-pdf-file {
    margin-left: -1rem;      /* align with text above box */
    margin-right: -1rem;     
    border-radius: .25rem;
  }

  /* links more clickable: stretch full width */
  .block-field-blocknodepressfield-pdf-file a[type="application/pdf"] {
    display: block;
    line-height: 1.35;
    padding: .25rem 0;
  }
}


/* =========================================================================
   Digital Intelligence Congress (DIC)
   ----------------------------------------------------------------------------
   9. INSTITUTIONS SECTION
   ========================================================================= */

/* ————————————————————————————————————————————————————————————————
   9.1. Exception for  Container Padding Removing
———————————————————————————————————————————————————————————————— */

.institutions-section,
.institutions-section .layout__region--content {
  padding-inline: 0 !important;
}

/* ————————————————————————————————————————————————————————————————
   9.2. Variables – adjust only if page gutter differs
———————————————————————————————————————————————————————————————— */

:root {
  --inst-side-pad: 0.35rem;      /* left / right gutter on desktop  */
  --inst-row-gap : 1rem;         /* row gap for all viewports       */
}
@media (max-width: 640px) {
  :root { --inst-side-pad: 0.35rem; }     /* page gutter on mobile */
}

/* ————————————————————————————————————————————————————————————————
   9.3. Card-Grid Aligns With The Blue Header (compensate border + pad)
———————————————————————————————————————————————————————————————— */

.institutions-section .usa-card-group.grid-row {
  margin-inline: calc(-1 * var(--inst-side-pad) - 2px) !important;
  margin-block-end: 0 !important;           /* remove extra gap    */
}

/* ————————————————————————————————————————————————————————————————
   9.4. Zero Inner Column Gutter – we control the gaps ourselves
———————————————————————————————————————————————————————————————— */

.institutions-section .usa-card-group.grid-row>* {
  padding-inline: 0 !important;
}

/* ————————————————————————————————————————————————————————————————
   9.5. Even Vertical Spacing
———————————————————————————————————————————————————————————————— */

.institutions-section li.usa-card {
  margin-block-end: var(--inst-row-gap) !important;
}
.institutions-section li.usa-card:first-child {
  margin-block-start: 0 !important; /* no top offset */
}

/* ————————————————————————————————————————————————————————————————
   9.6. Square Corners & Narrower Side Borders
———————————————————————————————————————————————————————————————— */

.institutions-section .usa-card,
.institutions-section .usa-card__container,
.institutions-section .usa-card__img {
  border-radius: 0 !important;
}
.institutions-section .usa-card__container {
  border-inline-width: 1px !important; 
  border: 1px solid #dfe1e2;
}

/* ————————————————————————————————————————————————————————————————
   9.7. Equal-Height Flex Trick
———————————————————————————————————————————————————————————————— */
                            
.institutions-section .usa-card,
.institutions-section .usa-card__container {
  display: flex; flex-direction: column;
}
.institutions-section .usa-card__body {
  flex: 1;
}

/* ————————————————————————————————————————————————————————————————
   9.8. Optional Breathing Space (below the blue headline)
———————————————————————————————————————————————————————————————— */

.institutions-section .usa-card-group:first-of-type {
  margin-block-start: 1rem !important;
}

.institutions-section .usa-card__img {
  position: relative;
}

.institutions-section .usa-card__img::after {
  content: "";
  position: absolute;
  inset: 0;               
  border: 1px solid #dfe1e2;   
  pointer-events: none;  
  border-radius: 0;      
}

.institutions-section .usa-card__media--exdent {
  margin-inline: -1px !important;   
  margin-top: -1px !important;      
}

/* =========================================================================
   Digital Intelligence Congress (DIC)
   ----------------------------------------------------------------------------
   10. CONGRESS REGISTRY
   ========================================================================= */

/* ————————————————————————————————————————————————————————————————
   10.1. Additional tweaks for table, avatar and non-available file
———————————————————————————————————————————————————————————————— */

/* Avatar – icon + size, no file name displayed */
.views-field-field-avatar span.file {
  display: inline-flex;             
  align-items: center;
  gap: .4rem;
}
.views-field-field-avatar span.file a {
  position: relative;
  width: 1rem; height: 1rem;
  overflow: hidden;
  text-indent: -9999px;             
}
.views-field-field-avatar span.file a::before {
  content: "";
  position: absolute; inset: 0;
  background: url("/themes/custom/dic_subtheme/dist/img/usa-icons/file-image.svg")
             no-repeat center/contain;     
}
/* (optionally) refine the font size for “(401 KB)” */
.views-field-field-avatar span.file > span {
  font-size: .8rem;
  font-weight: 400;
}

/* Overall container: aligned inline with correct spacing */
.views-field-field-avatar span.file.file--na,
.views-field-field-pdf-file  span.file.file--na {
  display: inline-flex;
  align-items: center;
  gap: .35rem;          
  font-size: .8rem;
  font-weight: 400;
  color: #595959;       
}

/* “cancel” / no-file icon */
.file-na__icon {
  width: 1rem;
  height: 1rem;
  background: url("/themes/custom/dic_subtheme/dist/img/usa-icons/cancel.svg")
             center/contain no-repeat;
  /* If SVG has fill="currentColor", you could recolor via color: */
  color: #B50909;       /* red ‘stop’ — optional */
}

/* Label text */
.file-na__label {
  line-height: 1;       
}

/* (Optionally) Hover – remains neutral */
.file-na__icon:hover,
.file-na__label:hover {
  text-decoration: none;
}

/* ————————————————————————————————————————————————————————————————
   10.2. Registry & Legislation – show page numbers on mobile
———————————————————————————————————————————————————————————————— */

@media (max-width: 640px){

  /* 1) Cancel the USWDS 'display:none' so page numbers render again */
  .path-registry    .usa-pagination__page-no,
  .path-legislation .usa-pagination__page-no{
      display: inline-flex !important;     /* force visibility */
  }

  /* 2) Let the whole strip scroll horizontally if it’s wider
        than the viewport; keeps global overflow-x:hidden intact. */
  .path-registry    .usa-pagination,
  .path-legislation .usa-pagination{
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;   /* momentum on iOS */
      white-space: nowrap;                 /* stay in one row */
  }

  /* 3) Prevent items from squishing */
  .path-registry    .usa-pagination__item,
  .path-legislation .usa-pagination__item{
      flex: 0 0 auto;
  }
}

/* ————————————————————————————————————————————————————————————————
   10.3. Notable Card - President, Chairman, Rector
———————————————————————————————————————————————————————————————— */

.bio-card-blue {
  background: #eef7fa;
  border: 2px solid #005ea2;
  border-radius: 0;
  padding: 1.5rem 1.5rem;
  max-width: 1040px;
  margin: 1.5rem auto 2.5rem;
}

.usa-media-block.bio-card-blue {
  display: flex;
  align-items: flex-start;
}

.bio-card-blue .usa-media-block__img {
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 0;
  margin-right: 1.25rem;
}

.bio-card-blue .usa-media-block__body {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.bio-card-blue h2 {
  margin: 0 0 .5rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.4;
}

.bio-card-blue p {
  margin: 0 0 1rem;
}

.bio-card-blue p:last-of-type {
  margin-bottom: 0;
}

.bio-card-blue a.usa-button {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 640px) {
  .bio-card-blue {
    flex-direction: column;
    padding: 1.25rem 1.25rem 1.25rem;
  }
  .bio-card-blue .usa-media-block__img {
    width: 100%;
    height: auto;
    margin: 0 0 1.25rem 0;
  }
}

/* ————————————————————————————————————————————————————————————————
   10.4. Notable style for Custom Header - President, Chairman, Rector
———————————————————————————————————————————————————————————————— */

.usa-section--notable {
  background-color: #005ea2;    /* strong USWDS */
  color: #ffd100;               
  border: 2px solid #004c87;    /* frame */
  border-radius: 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.usa-section--notable h2 {
  color: #00bde3; 
}

.usa-section--notable h3,
.usa-section--notable h4 {
  color: #ffffff;               /* USWDS accent */
  margin-top: 0;
}

.usa-section--notable p {
  margin-bottom: 1rem;
}

.usa-section--notable a {
  color: #ffd100;               /* links */
  text-decoration: underline;
}

.usa-section--notable a:visited {
  color: #ffb81c;
}

.usa-section--notable a:hover,
.usa-section--notable a:active {
  color: #ffffff;
}

@media (max-width: 640px) {
  .usa-section--notable {
    padding: 1rem;
  }
}

/* ————————————————————————————————————————————————————————————————
   10.5. Responsive Table (About, Governance, Ethics, Education)
———————————————————————————————————————————————————————————————— */

@media (max-width: 640px) {
  .table-responsive {
    overflow-x: auto;                       /* enable horizontal scrolling */
    -webkit-overflow-scrolling: touch;      /* smooth scrolling on iOS */
    margin-bottom: 1rem;                    /* spacing below table */
  }
  .table-responsive table {
    width: 100%;                            /* full width of container */
    white-space: nowrap;                    /* prevent cell wrapping */
  }
}

/* ————————————————————————————————————————————————————————————————
   10.6. Link Wrapping and Tags for Mobiles
———————————————————————————————————————————————————————————————— */

.usa-summary-box__link {
  word-break: break-all;
  /* albo */
  /* overflow-wrap: anywhere; */
}

@media (max-width: 640px) {
  /* Every chip like the inline-block with a padding and margin */
  .usa-collection__meta a, .usa-collection__meta a:visited {
    display: inline-block;
    padding: .3rem .4rem .2rem;
    background: #565c65;
    color: #fff !important;
    font: .8rem / 1 "Source Sans Pro", sans-serif;
    text-transform: uppercase;
    border-radius: 2px;
    text-decoration: none;
  }
}






/* ————————————————————————————————————————————————————————————————
   10.7. Body Images Patch – front-end patch for everything
———————————————————————————————————————————————————————————————— */

.node .field--name-body img {
  max-width: 100%;
  height: auto;
}


/* === FILE END ================================================================== */
