@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap");
@import url("https://fonts.cdnfonts.com/css/caleb-mono");
@import url("https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --color-frame: #000000;

    --dark-orange: #5a1a1a;
    --neon-blue: #003cff;
    /****Change dark-orange y dark-pink*/
    
    
    --dark-pink: #5C1966;
    --violet: #9201cb;
    
    --color-black: #2A0800;


    /*base colors*/
    --navy-blue: #070F34;
    --hero-color: #49C5A5;
    --atomic-tangerine: #ff9b6b;  
    --red-crayola:#FA1649; 
    --flirt:#94187C;
    --dark-blue: #553c92;


    --background-hero: var(--navy-blue);
    --color-highlight: var(--red-crayola);
    --color-background: #f2e0d8;


    --red: #AE0F13;
    --pink: #D63F9B;
    --yellow: #D9AE08;
    --green: #058710;
    /*--light-green: #0CDE02;*/
    --light-green: #48a65e;
    --blue: #0077c8;
    --light-blue: #0E9EFF;
    --divider-white: #ffd9d9;

    --color-magenta: #8B1A5E;
    --color-crimson: #C0154A;
    --color-hot-pink: #E8295B;
    --color-deep-purple: #3B1F6E;
    --color-royal-blue: #1A4FA0;
    --color-andean-teal: #2BA89C;
    --color-forest-green: #1E7A3C;
    --color-gold: #E8A020;
    --color-cream: #F5F0E8;
    --color-near-black: #1A1018;

    /* Chamber affiliation (Senado = blue, Diputados = maroon) -- aliased to
       existing tokens, no new hex values. */
    --color-chamber-senado: var(--color-royal-blue);
    --color-chamber-diputados: var(--dark-orange);
    --color-chamber-senado-bg: #E8EFFA;
    --color-chamber-diputados-bg: #F1E6E0;
}

html,
body {
  /*Format of the body*/
  margin: 0;
  background-color: var(--color-background);
  color: var(--background-hero);
  font-family: "Roboto Slab", serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
    flex: 1;
}


.site-navbar {
  /*To stay in screen*/
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 14px 24px;
    background: var(--background-hero);
    /*border-bottom: 1px solid var(--color-frame);*/

    font-size: 14px;
}

.landing-page .site-navbar {
    background: linear-gradient(
        135deg,
        var(--atomic-tangerine) 0%,
        var(--hero-color) 100%
    );
}

.language-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    font-family: "Jen Brain", monospace
}

.language-links a {
    color: var(--background-hero);
    text-decoration: none;
    font-weight: 600;
}

.language-links a:hover {
    text-decoration: underline;
}


.header-divider {
    display: none;
}

.site-navbar {
    position: sticky;
    /* el resto de tus reglas */
}

.site-navbar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 98%;
    height: 1px;
    transform: translateX(-50%);
    background: var(--background-hero);
}



/*
.header-divider {
    display: none
    width: 90%;
    height: 1px;
    flex: 0 0 auto;
    background: var(--background-hero);

    /* Vertical stripe pattern.  
    background: repeating-linear-gradient(
        90deg,
        var(--pink) 0 7px,
        var(--color-highlight) 7px 14px,
        var(--pink) 14px 21px,
        var(--yellow) 21px 28px,
        var(--blue) 28px 35px,
        var(--light-blue) 35px 42px,
        var(--blue) 42px 49px,
        var(--yellow) 49px 56px,
        var(--green) 56px 63px,
        var(--light-green) 63px 70px,
        var(--green) 70px 77px
    );
*/
}

.nav-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-hero);
}

.nav-logo {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.landing-logo {
    display: block;
    width: 120%;
    height: 400px;
    margin: 0 auto 20px;
    color: var(--background-hero);
    background-color: currentColor;
    -webkit-mask: url("../images/Isotipo.svg") center / contain no-repeat;
    mask: url("../images/Isotipo.svg") center / contain no-repeat;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: "Jet Brain", monospace;
    
}


.nav-links > li:not(.menu-close):not(:last-child)::after {
    content: "|";
    color: var(--background-hero);
    margin-left: 18px;
    font-weight: 400;
}

.nav-links a,
.menu-toggle {
    color:var(--background-hero);
    text-decoration: none;
    font-weight: 600;
}

body:not(.landing-page) .nav-links a,
body:not(.landing-page) .language-links a {
    color: var(--hero-color);
}

body:not(.landing-page) .nav-links > li:not(.menu-close):not(:last-child)::after {
    color: var(--atomic-tangerine);
}

.menu-toggle,
.menu-close {
    display: none;
}

.page-container {
/*background of one first container*/
/*This should be body/page background*/
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    background-color: var(--color-background);
    min-height: 100vh;
}

.content-container {
/*Background of the conteiner of the buttons*/
    width: 100%;
    background: var(--color-background);
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px var(--color-background);
    text-align: center;
}

/* Format of the text of the Title of the page Open Congress */
.landing-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.page-subtitle {
    /*format of the text of the subtitle*/
    font-size: 20px;
    color: #000000;
    margin-bottom: 30px;
}

.search-title {
    font-size: 24px;
    color: var(--background-hero);
    margin-right: 10px;
}

.search-icon-button {
    width: 80px;
    height: 68px;
    border: none;
    color: var(--color-background);
    background-color: var(--color-highlight);
    font-size: 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.searching-container input,
.searching-container select {
    width: 100%;
    min-width: 0;
    height: 68px;
    padding: 0 18px;
    border: 2px solid var(--background-hero);
    font-size: 17px;
    box-sizing: border-box;
    background-color: var(--color-background);
}

.congress-search-form {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
}

.congress-search-form .search-title {
    margin: 0 0 18px;
}

.congress-search-form .bar-search {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 16px;
}

.congress-search-form .congress-search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.congress-search-form .searching-container {
  min-width: 0;
  width: 100%;
}

.congress-search-form .searching-container input,
.congress-search-form .searching-container select {
    width: 100%;
}

.congress-search-form .search-icon-button {
  width: 92px;
}

.congress-search-form .congress-search-actions {
  display: flex;
  gap: 16px;
}

/* Shared by both search forms: period (primary) + chamber (secondary)
   controls read as navigation tabs/chips rather than form <select>s -- they
   sit above the rest of the filter grid since they're more consequential
   (period changes almost the entire dataset in view) than the other
   filters. Each non-active tab is a tiny POST <form> (see _macros.html's
   tab_link) styled as a plain link/chip so the URL never shows the filter
   state -- .tab-form uses `display: contents` so the wrapping <form>
   doesn't affect layout, leaving just its <button> (styled below) and its
   `display:none` hidden inputs. */
.period-tabs-row {
  margin-bottom: 18px;
}

.tab-form {
  display: contents;
}

.bill-search-form .period-tabs,
.congress-search-form .period-tabs {
  margin-bottom: 10px;
}

.bill-search-form .period-tabs a,
.bill-search-form .period-tabs .tab-form-button,
.congress-search-form .period-tabs a,
.congress-search-form .period-tabs .tab-form-button {
  color: var(--color-black);
  opacity: 0.55;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.bill-search-form .period-tabs a:hover,
.bill-search-form .period-tabs .tab-form-button:hover,
.congress-search-form .period-tabs a:hover,
.congress-search-form .period-tabs .tab-form-button:hover {
  opacity: 0.85;
}

.bill-search-form .period-tabs span.is-active,
.congress-search-form .period-tabs span.is-active {
  color: var(--color-black);
  border-bottom-color: var(--color-highlight);
}

.chamber-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chamber-tabs a,
.chamber-tabs span,
.chamber-tabs .chamber-tab-button {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid #b7b7b7;
  cursor: pointer;
  font-family: inherit;
  background: none;
  display: inline-block;
}

.chamber-tabs a,
.chamber-tabs .chamber-tab-button {
  color: var(--color-black);
  opacity: 0.65;
}

.chamber-tabs a:hover,
.chamber-tabs .chamber-tab-button:hover {
  opacity: 1;
}

.chamber-tabs span.is-active {
  border-color: var(--color-highlight);
  color: var(--color-highlight);
  background: rgba(179, 57, 81, 0.08);
}

/* Year sub-tabs inside the committee-membership panel -- same pill
   treatment as .chamber-tabs, kept as its own class since it's a
   different grouping concern (legislative year within a period, not
   chamber). */
.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.year-tabs a,
.year-tabs span,
.year-tabs .year-tab-button {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid #b7b7b7;
  cursor: pointer;
  font-family: inherit;
  background: none;
  display: inline-block;
}

.year-tabs a,
.year-tabs .year-tab-button {
  color: var(--color-black);
  opacity: 0.65;
}

.year-tabs a:hover,
.year-tabs .year-tab-button:hover {
  opacity: 1;
}

.year-tabs span.is-active {
  border-color: var(--color-highlight);
  color: var(--color-highlight);
  background: rgba(179, 57, 81, 0.08);
}

.congress-search-grid label,
.bill-search-form .search-row label,
.congress-search-form .search-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}


.bill-search-form {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
}

.bill-search-form .search-title {
  margin: 0 0 18px;
  text-align: left;
}

.bill-search-form .bar-search {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  width: 100%;
  gap: 22px;
}

.bill-search-form .search-row,
.congress-search-form .search-row {
  display: grid;
  gap: 16px;
  width: 100%;
}

.bill-search-form .search-row--general {
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-bottom: 40px;
}

.bill-search-form .search-row--primary {
  grid-template-columns: repeat(3, minmax(0, 1fr)) 92px 96px;
  align-items: stretch;
  margin-bottom: 40px;
}

.bill-search-form .search-row--secondary,
.congress-search-form .search-row--secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 16px;
}

.bill-search-form .searching-container {
    display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.bill-search-form .search-date-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
}

.bill-search-form .search-date-title {
  font-size: 16px;
  font-weight: 500;
  color: #333333;
}

.bill-search-form .search-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bill-search-form .search-tooltip-icon {
  color: var(--dark-pink);
  cursor: help;
  font-size: 14px;
  line-height: 1;
}

.bill-search-form .search-tooltip-text {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 5;
  width: min(340px, 80vw);
  padding: 10px 12px;
  border: 1px solid #d6d6d6;
  background: #ffffff;
  color: #344452;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.bill-search-form .search-tooltip:hover .search-tooltip-text,
.bill-search-form .search-tooltip:focus-within .search-tooltip-text {
  opacity: 1;
  transform: translateY(0);
}

.bill-search-form .search-diff-panel {
  display: grid;
  grid-template-columns: max-content minmax(120px, 180px);
  gap: 16px;
  align-items: center;
  justify-content: start;
  margin-top: 18px;
}

.bill-search-form .search-diff-select {
  width: 180px;
}

.bill-search-form .search-date-grid,
.bill-search-form .search-date-native-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
  width: 100%;
  margin-top: -10px;
}

.bill-search-form .search-date-native-grid {
  margin-top: 0;
}

/* Legacy no-JS date grid is now hidden only via <noscript> wrapping the
   markup itself (bills/search.html) so it still works when JS fails/is off. */

.bill-search-form .search-date-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.bill-search-form .search-date-label {
  font-size: 16px;
  font-weight: 500;
  color: #333333;
}

.bill-search-form .search-date-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.search-date-selects select{
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 2px solid #b7b7b7;
  font-size: 10px;
  box-sizing: border-box;
  background-color: var(--color-background);
}

.bill-search-form .search-date-input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 2px solid #b7b7b7;
  font-size: 16px;
  box-sizing: border-box;
  background-color: var(--color-background);
  color: #344452;
}

.date-picker-wrap {
  position: relative;
}

.date-picker-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: min(320px, 88vw);
  padding: 12px;
  border: 1px solid #d8e0e8;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(42, 8, 0, 0.16);
}

.date-picker-popup[hidden] {
  display: none;
}

.date-picker-header {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.date-picker-header strong {
  color: #15283b;
  font-size: 15px;
  text-align: center;
  text-transform: capitalize;
}

.date-picker-header button,
.date-picker-grid button {
  border: 1px solid #d8e0e8;
  background: #ffffff;
  color: #15283b;
  cursor: pointer;
}

.date-picker-header button {
  width: 36px;
  height: 32px;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.date-picker-weekdays {
  margin-bottom: 6px;
}

.date-picker-weekdays span {
  color: #667789;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.date-picker-grid span,
.date-picker-grid button {
  min-height: 32px;
}

.date-picker-grid button {
  font-size: 14px;
}

.date-picker-grid button:hover,
.date-picker-grid button:focus {
  border-color: var(--color-highlight);
  outline: none;
}

.date-picker-grid button.is-selected {
  border-color: var(--color-highlight);
  background: var(--color-highlight);
  color: #ffffff;
  font-weight: 700;
}

.date-picker-grid button:disabled {
  color: #b7b7b7;
  background: #f5f5f5;
  cursor: not-allowed;
}

.bill-search-form .radio-container {
  flex-basis: 100%;
  display: flex;
  gap: 20px;
  font-size: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.bill-search-form .radio-container label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bill-search-form .radio-container input[type="radio"] {
  margin: 0;
}

.bill-search-form .search-section-title,
.congress-search-form .search-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #333333;
  text-align: left;
  margin-top: -2px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.bill-search-form .advanced-search,
.congress-search-form .advanced-search {
  width: 100%;
}

.bill-search-form .advanced-search summary::-webkit-details-marker,
.congress-search-form .advanced-search summary::-webkit-details-marker {
  display: none;
}

.bill-search-form .advanced-search .fa-chevron-down,
.congress-search-form .advanced-search .fa-chevron-down {
  color: var(--dark-pink);
  font-size: 14px;
  transition: transform 0.18s ease;
}

.bill-search-form .advanced-search[open] .fa-chevron-down,
.congress-search-form .advanced-search[open] .fa-chevron-down {
  transform: rotate(180deg);
}

.bill-search-form .advanced-search .search-row--secondary,
.congress-search-form .advanced-search .search-row--secondary {
  margin-top: 14px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.form-actions button,
.clear-button {
    min-width: 120px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.form-actions button {
    border: none;
    background: var(--color-highlight);
    color: #ffffff;
}

.clear-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b7b7b7;
    color: #344452;
    text-decoration: none;
    background: transparent;
}

.clear-button:hover {
    background: #ffffff;
}

.bill-search-form .bill-clean-button,
.congress-search-form .congress-clean-button {
  min-width: 0;
  min-height: 68px;
  box-sizing: border-box;
  border-color: var(--color-highlight);
  background: var(--color-highlight);
  color: #ffffff;
}

.bill-search-form .bill-clean-button:hover,
.congress-search-form .congress-clean-button:hover {
  background: var(--color-highlight);
  border-color: var(--color-highlight);
  opacity: 0.9;
}

.bill-search-form .search-icon-button,
.bill-search-form .bill-clean-button,
.congress-search-form .search-icon-button,
.congress-search-form .congress-clean-button {
  width: 100%;
  min-height: 68px;
  border: 2px solid var(--red-crayola);
  border-radius: 8px;
  background: transparent;
  color: var(--background-hero);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 3px 3px 0 var(--red-crayola);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.bill-search-form .search-icon-button:hover,
.bill-search-form .search-icon-button:focus,
.bill-search-form .bill-clean-button:hover,
.bill-search-form .bill-clean-button:focus,
.congress-search-form .search-icon-button:hover,
.congress-search-form .search-icon-button:focus,
.congress-search-form .congress-clean-button:hover,
.congress-search-form .congress-clean-button:focus {
  background-color: var(--red-crayola);
  border-color: var(--atomic-tangerine);
  color: var(--background-hero);
  opacity: 1;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--red-crayola);
}

.bill-search-form .search-actions,
.congress-search-form .search-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

.bill-search-form .search-actions .search-icon-button,
.bill-search-form .search-actions .bill-clean-button,
.congress-search-form .search-actions .search-icon-button,
.congress-search-form .search-actions .congress-clean-button {
  width: auto;
  min-width: 130px;
}

.bar-search {
    display: flex;
    flex-direction: column;
 
}

.search-criteria,
.search-results-summary {
    width: calc(100% - 72px);
    margin: 0 auto 16px;
}

.search-results-table {
    width: calc(100% - 72px);
    margin: 0 auto 28px;
}

.search-pagination {
  width: calc(100% - 72px);
  margin: 0 auto 28px;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.search-pagination-label {
  margin: 0 0 8px 4px;
  color: #5a1a1a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pagination-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* .pagination-tab/.pagination-prev/.pagination-next are now <button>s
   (submitting a POST form, see _macros.html's tab_link) instead of <a>
   tags, so they need an explicit reset -- otherwise they'd pick up native
   button chrome instead of reading as plain links like before. */
.pagination-tab,
.pagination-prev,
.pagination-next {
  background: none;
  border: none;
  padding: 4px 2px;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-highlight, #0d6efd);
  text-decoration: underline;
  cursor: pointer;
}

span.pagination-tab.is-active {
  text-decoration: none;
  font-weight: 700;
  color: var(--color-black);
}

.search-results-table > :not(caption) > * > * {
    padding: 14px 16px;
    vertical-align: middle;
}

.search-results-table {
    border-color: var(--background-hero);
}

.search-results-table > thead > tr > th {
    background-color: var(--background-hero) !important;
    color: var(--hero-color) !important;
    border-color: var(--background-hero) !important;
}

.search-results-table > tbody > tr > * {
    background-color: var(--color-background) !important;
    color: var(--background-hero);
    border-color: var(--background-hero) !important;
}

.search-results-table.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgb(255 155 107 / 16%) !important;
}

.search-results-table .btn.btn-primary {
    background-color: transparent;
    border: 2px solid var(--red-crayola);
    color: var(--background-hero);
    box-shadow: 3px 3px 0 var(--red-crayola);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.search-results-table .btn.btn-primary:hover,
.search-results-table .btn.btn-primary:focus {
    background-color: var(--red-crayola);
    border-color: var(--red-crayola);
    color: var(--atomic-tangerine);
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--red-crayola);
}



.search-results-table th:first-child,
.search-results-table td:first-child {
    border-left: 1px solid var(--background-hero);
}

.search-results-table th:last-child,
.search-results-table td:last-child {
    border-right: 1px solid var(--background-hero);
}

.congress-mosaic {
  width: calc(100% - 72px);
  max-width: 1180px;
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.congress-mosaic-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  color: #15283b;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #d8e0e8;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

/* Now a <button> submitting a POST form (see search.html) instead of an
   <a> tag, so it doesn't show a query string for the search's active
   period -- reset the native button chrome/typography the rule above
   doesn't already cover. */
button.congress-mosaic-card {
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.congress-mosaic-card:hover,
.congress-mosaic-card:focus {
  transform: translateY(-3px);
  border-color: var(--color-highlight);
  box-shadow: 0 10px 22px rgba(42, 8, 0, 0.14);
  outline: none;
}

.congress-mosaic-photo-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f1f5f9;
}

.congress-mosaic-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.congress-mosaic-name {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  color: #15283b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  justify-content: center;
}

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

@media (max-width: 760px) {
  .congress-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 500px) {
  .congress-search-form .congress-search-grid,
  .bill-search-form .search-row--primary,
  .bill-search-form .search-row--secondary,
  .congress-search-form .search-row--secondary,
  .bill-search-form .search-diff-panel,
  .bill-search-form .search-date-grid,
  .bill-search-form .search-date-native-grid {
    grid-template-columns: 1fr;
  }

  .congress-search-form .search-icon-button,
  .bill-search-form .search-diff-select {
    width: 100%;
  }

  .bill-search-form .search-icon-button {
    width: 100%;
    min-height: 68px;
  }

  .bill-search-form .bill-clean-button {
    width: 100%;
  }

  .congress-search-form .search-actions {
    flex-direction: column;
    width: 100%;
  }

  .congress-search-form .search-actions .search-icon-button,
  .congress-search-form .search-actions .congress-clean-button {
    width: 100%;
  }

  .search-criteria,
  .search-results-summary,
  .search-results-table,
  .congress-mosaic {
    width: calc(100% - 32px);
  }

  .search-results-table thead {
    display: none;
  }

  .search-results-table,
  .search-results-table tbody,
  .search-results-table tr {
    display: block;
    width: 100%;
  }

  .search-results-table tr {
    margin-bottom: 16px;
    border: 1px solid #d8e0e8;
    border-radius: 6px;
    overflow: hidden;
  }

  .search-results-table > :not(caption) > * > * {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #eef1f4;
  }

  .search-results-table tr td:last-child {
    border-bottom: none;
  }

  .search-results-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #5a1a1a;
    flex-shrink: 0;
  }
}

.btn-group {
  margin-left: auto;
}

.btn-group a {
    color: #5a1a1a;
    text-decoration: none;
    font-weight: 600;
}

/* Menu landing*/
.menu-landing {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-self: center;
    gap: 15px;
    flex-wrap: wrap;
}
/*Format of the bottons*/
.menu-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    flex: 1;
    /*this a gradeint pf colors*/
    background: var(--dark-pink);
    color: var(--divider-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    width: 180px;
}


.hero-buttom a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    flex: 1;
    /*this a gradeint pf colors*/
    background: var(--background-hero);
    color: whitesmoke;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    width: 180px;
    font-family: "Jet Brain", monospace;
    /*border: 3px solid  #ff9b6b;*/
}




/*effect when put the mouse overt a button*/
.menu-card a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Bills */
/* detail page */
.page-details {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  grid-template-areas:
    "details timeline";
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 0px;
}

.bill-details {
  grid-area: details;
}

.bill-hero {
  padding: 28px 36px;
  border-left: 5px solid var(--flirt);
}

.bill-topline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--background-hero)
}

.bill-code {
    color: var(--background-hero  );
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.bill-status {
    background-color: var(--hero-color);
    color: var(--background-hero);
    font-size: 16px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 500px;
}

.bill-status.not-approved {
  background-color: var(--red-crayola);
  color: var(--color-background);
  border-radius: 999px;
}

.ai-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--flirt);
  color: var(--color-background);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.ai-feature-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: currentColor;
}

.bill-heading {
    max-width: 950px;
    margin: 0 0 14px;

    color: var(--background-hero);
    font-size: 25px;
    line-height: 1.12;
    font-weight: 700;
}

.bill-topic {
    display: inline-block;
    background-color: var(--background-hero);
    color: var(--color-background);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 9px;
}

.bill-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bill-heading-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    color: var(--background-color);
    font-size: 16px;
    padding: 10px 0 0;
}

.bill-meta {
  background: var(--color-background);
  padding: 10px 36px 0;
  font-size: 16px;
  line-height: 1.55;
}

.bill-meta p {
  margin: 0 0 18px 0;
}

.bill-meta p:last-child {
  margin-bottom: 0;
}

.bill-meta a {
  color: inherit;
}

.summary-label {
  margin-bottom: 6px;
}

.summary-text {
  max-width: 900px;
  margin-top: 0;
}

.summary-untranslated-note {
  max-width: 900px;
  margin: 0 0 4px;
  font-size: 14px;
  font-style: italic;
  color: var(--color-muted, #6b7280);
}




/*los bordes del timeline*/

.timeline-shell {
  grid-area: timeline;
  position: relative;
  width: 100%;
  margin: 0 auto;
  /*Este es el elemento que controla el shadown*/
  background: var(--background-hero);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--background-hero);
  /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);*/
}

.timeline-heading {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 16px 28px;
  background: var(--background-hero);
  color: var(--atomic-tangerine);
  font-size: 20px;
  font-weight: 700;
}

.timeline-actions-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 28px 14px;
  background: var(--background-hero);
  color: var(--color-background);
  border-bottom: 1px solid var(--hero-color);
}

.timeline-legend-label {
  margin-right: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.timeline-legend-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.timeline-legend-download {
  background: var(--hero-color);
  color: var(--background-hero);
}

.timeline-legend-ai {
  position: relative;
  background: var(--flirt);
  color: var(--color-background);
  cursor: help;
}

.timeline-legend-ai-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.timeline-ai-legend-tooltip {
  position: absolute;
  z-index: 10;
  top: calc(100% + 9px);
  left: 0;
  width: min(240px, calc(100vw - 48px));
  padding: 10px 12px;
  border: 1px solid var(--hero-color);
  border-radius: 6px;
  background: var(--background-hero);
  color: var(--color-background);
  font-family: Roboto, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, visibility .15s ease;
}

.timeline-legend-ai:hover .timeline-ai-legend-tooltip,
.timeline-legend-ai:focus .timeline-ai-legend-tooltip {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 500px) {
  .timeline-ai-legend-tooltip {
    width: min(240px, calc(100vw - 48px));
  }
}

/*contenedor de todo del timeliner*/
.timeline-container {
  max-height: 650px;
  padding: 48px 28px 90px;
  overflow-y: auto;
  background: var(--background-hero);
  box-sizing: border-box;

  /*-webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    black 42px,
    black calc(100% - 42px),
    transparent 100%
  );

  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    black 42px,
    black calc(100% - 42px),
    transparent 100%
  );
*/
  scrollbar-width: thin;
  scrollbar-color: var(--atomic-tangerine) var(--background-hero);
}

.timeline-shell::before,
.timeline-shell::after {
  display: none;
}


.timeline-shell::before {
  top: 0;
  background: var(--hero-color);

}

.timeline-shell::after {
  bottom: 0;
  background: var(--hero-color)
}

.timeline-container::-webkit-scrollbar {
  width: 10px;
}

.timeline-container::-webkit-scrollbar-track {
  background: var(--color-background);
  border-radius: 0;
}

.timeline-container::-webkit-scrollbar-thumb {
  background: var(--atomic-tangerine);
  border-radius: 0;
  border: none;
}



.timeline-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-background);
}

.timeline {
  position: relative;
  padding-left: 28px;
}


/*linea que une los puntos de linea de tiempo*/
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--hero-color);
  border-radius: 999px;
}

.timeline-item {
  margin-bottom: 22px;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--background-hero);
  border: 3px solid var(--hero-color);
  border-radius: 50%;
  /*box-shadow: 0 0 0 4px var(--color-black-transparency);*/
  z-index: 2;
}


/*Contenedores de tarjetas de linea de tiempo*/
.timeline-content {
  padding: 14px 16px;
  background: var(--color-background);
  border: 1px solid var(--background-hero);
  border-radius: 14px;
  /*transition: transform 0.15s ease, box-shadow 0.15s ease;*/
}

.timeline-content:hover {
  transform: translateY(-2px);
  /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);*/
}

/*Titulo de las tarjetas*/
.timeline-type {
  font-weight: 700;
  font-size: 15px;
  color: var(--background-hero);
  margin-bottom: 8px;
}

/*Detalle de los steps tarjetas*/
.step-detail {
  margin-top: 0;
  color: var(--background-hero);
  font-size: 12px;

}


/*Botones de descarga*/
.timeline-content a {
  display: inline-block;
  margin-right: 12px;
  margin-top: 6px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--background-hero);
  background: var(--hero-color);
  /*border: 1px solid var(--atomic-tangerine);*/
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.timeline-content a:hover {
  background-color: var(--dark-pink);
  text-decoration: underline;
  transform: translateY(-1px);
}

.timeline-content a.timeline-view-changes,
.timeline-content a.timeline-view-changes:hover,
.timeline-content a.timeline-view-changes:focus {
  background-color: var(--flirt);
  color: var(--color-background);
}

@media (max-width: 900px) {
  .page-details {
    grid-template-columns: 1fr;
    grid-template-areas:
      "details"
      "timeline";
    padding: 0 0 20px;
  }

  .bill-heading {
    font-size: 25px;
  }

  .bill-topline {
    flex-wrap: wrap;
  }

  .bill-heading-meta {
    flex-direction: column;
    gap: 8px;
  }
}

.pagination-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* votes page */
.page-votes {
  max-width: none;
  margin: 0 auto;
  padding: 16px 32px 32px;
}

.page-votes .bill-hero {
  padding: 20px 24px;
}

.page-votes .bill-topline {
  gap: 12px;
  margin-bottom: 10px;
}

.page-votes .bill-code,
.page-votes .bill-status {
  font-size: 14px;
}

.vote-bill-link {
  text-decoration: underline;
}

.vote-bill-link:hover,
.vote-bill-link:focus {
  color: var(--flirt);
}

.page-votes .bill-status {
  padding: 6px 14px;
}

.page-votes .bill-heading {
  max-width: none;
  margin-bottom: 10px;
}

.page-votes .bill-topic {
  font-size: 11px;
  padding: 6px 8px;
}

.page-votes .bill-heading-meta {
  flex-wrap: nowrap;
  gap: 12px 24px;
  padding-top: 8px;
  color: var(--background-hero);
  font-size: 14px;
}

.ai-feature-note {
  margin: 8px 0 0;
  color: var(--background-hero);
  font: inherit;
  font-size: 14px;
}

.vote-presentation-meta {
  white-space: nowrap;
}

.vote-step-meta {
  display: block;
  color: var(--background-hero);
  font-size: 0.85rem;
  font-weight: 500;
}

.vote-step-meta strong {
  color: var(--background-hero);
}

.votes-overview {
  --votes-overview-height: clamp(340px, 25vw, 470px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  margin-top: 2rem;
}

.votes-overview-summary,
.votes-overview-charts,
.votes-individual {
  min-width: 0;
}

.votes-overview-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: var(--votes-overview-height);
}

.votes-overview-charts {
  display: grid;
  gap: 16px;
  height: var(--votes-overview-height);
}

.vote-results-title {
  margin: 0;
  color: var(--background-hero);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.15;
}

.vote-results {
  margin: 0;
}

.vote-summary {
  padding: 0;
}

.vote-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.vote-summary-card {
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 12px 14px;
  border: 1px solid var(--hero-color);
  border-left-width: 4px;
  border-radius: 8px;
  background: var(--background-hero);
  box-shadow: 3px 3px 0 var(--hero-color);
}

.vote-summary-label {
  color: var(--color-background);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.vote-summary-card--yes {
  border-color: var(--hero-color);
  box-shadow: 3px 3px 0 var(--hero-color);
}

.vote-summary-card--no {
  border-color: var(--red-crayola);
  box-shadow: 3px 3px 0 var(--red-crayola);
}

.vote-summary-card--abstain {
  border-color: var(--atomic-tangerine);
  box-shadow: 3px 3px 0 var(--atomic-tangerine);
}

.vote-summary-card--others {
  border-color: #b8b8b8;
  box-shadow: 3px 3px 0 #b8b8b8;
}

.vote-table {
  display: none;
}

.vote-table th {
  background-color: transparent;
  padding: 1rem 0.75rem;
  text-align: center;
  font-weight: bold;
  border: none;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.vote-table td {
  padding: 1.75rem 1rem;
  text-align: center;
  border: none;
  background-color: transparent;
}

.vote-count {
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 1;
}

.vote-count.in-favor {
  color: var(--hero-color);
}

.vote-count.against {
  color: var(--red-crayola);
}

.vote-count.abst {
  color: var(--atomic-tangerine);
}

.vote-count.others {
  color: #b8b8b8;
}

.seats-wrapper {
  margin-top: 0;
  flex: 1;
  min-height: 0;
  background-color: var(--color-background);
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-bottom: 0;
  align-items: center;
}

.seats-container {
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

#seatsSvg {
  display: block;
  width: 100%;
  height: auto;
}

.vote-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  font-size: 12px;
  color: #546170;
}

.seat-tooltip {
  position: absolute;
  pointer-events: none;
  background: white;
  border: 1px solid #ccc;
  padding: 6px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  font-size: 0.9rem;
  display: none;
  z-index: 10;
  white-space: nowrap;
}

#seatsSvg .seat {
  cursor: default;
}

#seatsSvg .seat--yes {
  fill: var(--hero-color);
}

#seatsSvg .seat--no {
  fill: var(--red-crayola);
}

#seatsSvg .seat--abstain {
  fill: var(--atomic-tangerine);
}

#seatsSvg .seat--others {
  fill: #b8b8b8;
}

.bancada-chart {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px;
  /*border: 1px solid var(--background-hero);*/
  border-radius: 8px;
  background-color: var(--color-background);
  /*box-shadow: 3px 3px 0 var(--hero-color);*/
}

.bancada-chart-title {
  margin: 0 auto 10px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--background-hero);
}

.bancada-chart-scroll {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-color: var(--atomic-tangerine) var(--background-hero);
  scrollbar-width: thin;
}

.bancada-chart-scroll::-webkit-scrollbar {
  width: 8px;
}

.bancada-chart-scroll::-webkit-scrollbar-track {
  background: var(--background-hero);
}

.bancada-chart-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--atomic-tangerine);
}

#bancadaSvg {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  overflow: visible;
}

.bancada-label {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 600;
  dominant-baseline: middle; 
  alignment-baseline: middle;
  fill: var(--background-hero);
}

.bancada-total {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 700;
  fill: var(--background-hero);
}

.bancada-bar-segment text {
  font-size: 12px;
  font-weight: 600;
  fill: #24303b;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vote-legend .legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.vote-legend .legend-swatch--yes {
  background-color: var(--hero-color);
}

.vote-legend .legend-swatch--no {
  background-color: var(--red-crayola);
}

.vote-legend .legend-swatch--abstain {
  background-color: var(--atomic-tangerine);
}

.vote-legend .legend-swatch--others {
  background-color: #b8b8b8;
}

.bancada-legend .legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.vote-document-link {
  display: inline-block;
  margin-left: auto;
  padding: 7px 12px;
  border: 1px solid var(--atomic-tangerine);
  border-radius: 7px;
  background: var(--background-hero);
  color: var(--atomic-tangerine);
  font-family: "Roboto", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.vote-document-link:hover,
.vote-document-link:focus {
  background: var(--atomic-tangerine);
  color: var(--background-hero);
}

.bancada-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  color: var(--background-hero);
  font-family: "Roboto", sans-serif;
  font-size: 0.8rem;
}

.bancada-legend .legend-swatch--yes {
  background-color: var(--hero-color);
}

.bancada-legend .legend-swatch--no {
  background-color: var(--red-crayola);
}

.bancada-legend .legend-swatch--abstain {
  background-color: var(--atomic-tangerine);
}

.bancada-legend .legend-swatch--others {
  background-color: #b8b8b8;
}

.vote-members-table-wrap {
  margin-top: 32px;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--background-hero);
  border-radius: 8px;
  scrollbar-color: var(--atomic-tangerine) var(--background-hero);
  scrollbar-width: thin;
}

.vote-members-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.vote-members-table-wrap::-webkit-scrollbar-track {
  background: var(--background-hero);
}

.vote-members-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid var(--background-hero);
  border-radius: 999px;
  background: var(--atomic-tangerine);
}

.vote-members-title {
  margin: 32px 0 10px;
  color: var(--background-hero);
  font-family: "Roboto", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.vote-members-table {
  width: 100%;
  background-color: var(--color-background);
  margin-bottom: 0;
}

.vote-members-table.search-results-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.vote-members-table.search-results-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.vote-members-table .vote-filter-row th {
  padding: 0 12px 12px;
  background: var(--background-hero) !important;
}

.vote-filter {
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--atomic-tangerine);
  border-radius: 5px;
  background: var(--color-background);
  color: var(--background-hero);
  font-family: "Roboto", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
}

.vote-filter::placeholder {
  color: color-mix(in srgb, var(--background-hero) 65%, transparent);
}

.vote-filter:focus {
  outline: 2px solid var(--hero-color);
  outline-offset: 1px;
}

#bancadaSvg .bancada-segment {
  stroke: var(--color-background);
  stroke-width: 1.5px;
}

#bancadaSvg .bancada-bar-track {
  fill: rgb(7 15 52 / 8%);
}

#bancadaSvg .bancada-grid line {
  stroke: rgb(7 15 52 / 16%);
  stroke-width: 1px;
  stroke-dasharray: 3 4;
}

#bancadaSvg .bancada-axis line {
  stroke: var(--background-hero);
  stroke-width: 1px;
}

#bancadaSvg .bancada-axis text {
  fill: var(--background-hero);
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
}

#bancadaSvg .bancada-segment--yes {
  fill: var(--hero-color);
}

#bancadaSvg .bancada-segment--no {
  fill: var(--red-crayola);
}

#bancadaSvg .bancada-segment--abstain {
  fill: var(--atomic-tangerine);
}

#bancadaSvg .bancada-segment--others {
  fill: #b8b8b8;
}

@media (max-width: 900px) {
  .votes-overview {
    grid-template-columns: 1fr;
    --votes-overview-height: auto;
    gap: 28px;
  }

  .votes-overview-summary,
  .votes-overview-charts {
    height: auto;
  }

  .bancada-chart-scroll {
    max-height: 360px;
  }
}

@media (max-width: 600px) {
  .page-votes {
    padding: 16px;
  }

  .page-votes .bill-hero {
    padding: 16px;
  }

  .page-votes .bill-heading-meta {
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
  }

  .vote-results-title {
    font-size: 1.65rem;
  }

  .vote-summary {
    padding: 0;
  }

  .vote-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .vote-summary-card {
    min-height: 76px;
    padding: 10px 12px;
  }

  .vote-table th {
    padding: 0.75rem 0.35rem;
    font-size: 0.8rem;
  }

  .vote-table td {
    padding: 1.25rem 0.35rem;
  }

  .vote-count {
    font-size: 1.8rem;
  }
}

.vote-members-table th {
  white-space: nowrap;
  padding: 0;
}

.vote-members-table tbody td {
  vertical-align: middle;
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
}

.vote-sort-button {
  display: block;
  width: 100%;
  padding: 14px 12px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.vote-sort-button::after {
  content: "\2195";
  float: right;
  color: var(--hero-color);
}

.vote-sort-button[data-direction="asc"]::after {
  content: "\2191";
}

.vote-sort-button[data-direction="desc"]::after {
  content: "\2193";
}

.vote-members-table td:first-child a {
  color: var(--background-hero);
  text-decoration: none;
  font-weight: 600;
}

.vote-members-table td:first-child a:hover {
  color: var(--flirt);
  text-decoration: underline;
}

.vote-label {
  color: var(--background-hero);
  font-weight: 700;
}

@media (max-width: 600px) {
  .vote-members-table-wrap {
    overflow-x: auto;
  }

  .vote-members-table.search-results-table {
    display: table;
    min-width: 680px;
  }

  .vote-members-table.search-results-table thead {
    display: table-header-group;
  }

  .vote-members-table.search-results-table tbody {
    display: table-row-group;
  }

  .vote-members-table.search-results-table tr {
    display: table-row;
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .vote-members-table.search-results-table > :not(caption) > * > * {
    display: table-cell;
    padding: 10px 12px;
    border-bottom: 1px solid var(--background-hero);
  }

  .vote-members-table.search-results-table td::before {
    content: none;
  }
}

/*footer and menu hamurger*/


/* FOOTER */
.footer {
  background:var(--color-frame);
  color: #fff;
  padding: 26px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}



.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-link-disabled {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  cursor: default;
}

/*MENU*/

.nav-isotipo {
    display: block;
    height: 42px;
    width: auto;
    filter: invert(1);
}
@media (max-width: 500px) {
    /* NAVBAR */
  .site-navbar {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 12px 20px;
    gap: 10px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  /* Footer */
  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }


}


@media (max-width: 500px) {
  .nav-links {
    display: none;
  }
}


.menu-toggle {
  display: none;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

@media (max-width: 500px) {

  /* To show hamburger */
  .menu-toggle {
    display: block;
    font-size: 0;
    color: #5a1a1a;
    text-decoration: none;
    cursor: pointer;
  }

  label.menu-toggle::before {
    content: "\2630";
    font-size: 26px;
  }

  a.menu-toggle {
    display: none;
  }

  /* to hide the navigation by default */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--color-hero);
    padding: 20px;
    gap: 14px;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }
 
  .menu-close {
    display: block;
    text-align: right;
  }

  .menu-close label {
    color: #5a1a1a;
    font-size: 20px;
    text-decoration: none;
    cursor: pointer;
  }

  .menu-close a {
    display: none;
  }
}


/*Hero image*/


/* Hero image */
.hero {
    min-height: calc(100vh);
    box-sizing: border-box;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    text-align: center;
    /*background-image: url("../images/hero1.jpg");*/
    background: linear-gradient(
        90deg,
        var(--atomic-tangerine) 0%,
        var(--hero-color) 100%
    );
    /*background: var(--background-hero);*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 560px;

}

.hero-text {
    align-items: flex-start;
    flex: 0 1 66%;
    max-width: 760px;
    text-align: left;
}

.hero-container:not(.hero-text) {
    flex: 0 1 33%;
}

.hero-title {
    margin: 0 0 24px;
    color: var(--background-hero);
    font-size: 76px;
    font-weight: 700;
    line-height: 1.08;
    font-family: "Space Mono", monospace;
}

.hero-description {
    margin: 0 0 28px;
    color: var(--background-hero);
    font-size: 20px;
    line-height: 1.55;
    font-family: "Jet Brains", monospace;
}

.hero-list {
    margin: 0 0 28px;
    padding-left: 22px;
    text-align: left;
    line-height: 1.6;
}


.hero-content {
  max-width: 900px;
  padding: 0 18px;
}

.hero .page-subtitle {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 28px 0;
  color: var(--hero-color);
  font-family:"Jet Brains", monospace;
}

@media (max-width: 800px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-description {
        font-size: 21px;
    }
}

.about-section {
    background: var(--background-hero);
    min-height: 100vh;
    box-sizing: border-box;
    padding: 72px 24px;
    display: flex;
    align-items: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    font-family: "Caleb Mono", monospace;
}

.about-content h2 {
    margin: 0 0 24px;
    color: var(--atomic-tangerine);
    font-size: 76px;
    font-weight: 700;
    line-height: 1.08;
}

.about-content p {
    margin: 0;
    color:var(--hero-color);
    font-size: 18px;
    line-height: 1.7;
    text-align: justify;
}

.about-content .about-intro {
  max-width: 760px;
  margin-bottom: 28px;
  text-align: left;
}

.about-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.about-step {
  border: 1px solid var(--hero-color);
  border-radius: 8px;
  background: none;
  padding: 20px;
}

.about-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--dark-orange);
  color: #ffffff;
  font-weight: 700;
}

.about-step h3 {
  margin: 0 0 10px;
  color: var(--atomic-tangerine);
  font-size: 22px;
  font-weight: 700;
}

.about-step p {
  text-align: left;
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 800px) {
    .about-content h2 {
        font-size: 48px;
    }

    .about-steps {
      grid-template-columns: 1fr;
    }
}

.whats-next-section {
    background: var(--background-hero);
    box-sizing: border-box;
    padding: 72px 24px;
}

.whats-next-content {
    max-width: 900px;
    margin: 0 auto;
}

.whats-next-content h2 {
    margin: 0 0 20px;
    color:var(--atomic-tangerine);
    font-size: 64px;
    font-weight: 700;
    line-height: 1.08;
    font-family:"Jet Brain", monospace
}

.whats-next-content > p {
    max-width: 760px;
    margin: 0;
    color: var(--hero-color);
    font-size: 18px;
    line-height: 1.7;
    font-family: "Jet Brains", monospace;
}

.whats-next-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.whats-next-grid article {
    border: 1px solid var(--hero-color);
    border-radius: 12px;
    /*Esto es hero color ligeramente opaco*/
    background: rgb(73 197 165 / 80%);
    padding: 20px;
}

.whats-next-grid h3 {
    margin: 0 0 10px;
    color: var(--background-hero);
    font-size: 20px;
    font-weight: 700;
    font-family:"Jet Brain", monospace
}

.whats-next-grid p {
    margin: 0;
    color: var(--background-hero);
    font-size: 15px;
    line-height: 1.55;
    font-family:"Jet Brain", monospace
}

.whats-next-content .whats-next-contact {
    margin-top: 28px;
    font-weight: 600;
}

@media (max-width: 800px) {
    .whats-next-content h2 {
        font-size: 44px;
    }

    .whats-next-grid {
        grid-template-columns: 1fr;
    }
}

.team-section {
    background-color: var(--color-background);
    min-height: 100vh;
    box-sizing: border-box;
    padding: 48px 24px 72px;
    display: flex;
    align-items: flex-start;
}

.team-content {
    max-width: 900px;
    margin: 0 auto;
}

.team-content h2 {
    margin: 0 0 24px;
    color: var(--dark-orange);
    font-size: 76px;
    font-weight: 700;
    line-height: 1.08;
}

.team-intro {
    max-width: 820px;
    margin: 0 0 14px;
    color: #344452;
    font-size: 18px;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 42px 56px;
    margin-top: 28px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.team-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ffffff;
    border: 3px solid var(--dark-pink);
    box-shadow: 0 10px 24px rgba(42, 8, 0, 0.12);
}

.team-member p {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
}

@media (max-width: 800px) {
    .team-content h2 {
        font-size: 48px;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        gap: 34px 28px;
    }

    .team-photo {
        width: 130px;
        height: 130px;
    }
}

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


/*Congressmember*/

.congress-detail-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 24px 56px;
}

.period-tabs {
    display: flex;
    gap: 18px;
    margin: 0 0 20px;
    border-bottom: 1px solid #dde3e9;
}

.period-tabs a,
.period-tabs span,
.period-tabs .tab-form-button {
    display: inline-block;
    padding: 8px 2px 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

/* .tab-form-button is a <button> (submitting a POST form, see
   _macros.html), not an <a>/<span> -- reset native button chrome here so
   every .period-tabs usage (this detail page and both search forms) gets
   it, not just the ones with their own color override below. */
.period-tabs .tab-form-button {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.period-tabs a,
.period-tabs .tab-form-button {
    color: #5f6f7f;
}

.period-tabs a:hover,
.period-tabs .tab-form-button:hover {
    color: #22364a;
}

.period-tabs span.is-active {
    color: #22364a;
    border-bottom-color: var(--color-highlight);
}

.congress-profile-header {
    margin-bottom: 28px;
}

.congress-profile-header h1 {
    margin: 0 0 8px;
    color: #22364a;
    font-size: 34px;
    line-height: 1.15;
}

.congress-profile-header p {
    margin: 0;
    color: #5f6f7f;
    font-size: 16px;
    font-weight: 600;
}

.congress-section h2 {
    margin: 0 0 16px;
    color: #22364a;
    font-size: 22px;
    line-height: 1.2;
}

.congress-photo-wrap {
    width: 176px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8e0e8;
}

.congress-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.congress-profile-summary {
    width: 100%;
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    margin-bottom: 30px;
}

.congress-info-panel,
.congress-committee-panel {
    min-width: 0;
}

.congress-info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.congress-info-list div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
}

.congress-info-list dt {
    color: #667789;
    font-weight: 700;
}

.congress-info-list dd {
    margin: 0;
    color: #15283b;
}

.committee-membership-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.committee-membership-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3e9ef;
}

.committee-membership-list .committee-name {
    min-width: 0;
    color: #15283b;
    line-height: 1.35;
    font-weight: 600;
}

.committee-membership-list .committee-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.committee-membership-list strong {
    color: #5a1a1a;
    font-size: 13px;
    text-transform: capitalize;
    white-space: nowrap;
}

.committee-membership-list .committee-dates {
    font-size: 12px;
    color: #667789;
    font-variant-numeric: tabular-nums;
}

.congress-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0 38px;
}

.congress-stats article {
    padding: 22px 24px;
    border: 1px solid var(--hero-color);
    border-left: 5px solid var(--atomic-tangerine);
    border-radius: 8px;
    background: var(--background-hero);
    box-shadow: 3px 3px 0 var(--atomic-tangerine);
    text-align: left;
}

.congress-stats .approval-rate-card {
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.congress-stats .approval-rate-card:hover {
    transform: translate(2px, 2px);
    background: var(--dark-pink);
    border-color: var(--atomic-tangerine);
    box-shadow: 1px 1px 0 var(--atomic-tangerine);
}

.congress-stats .approval-rate-card::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 20;
    width: min(320px, 80vw);
    padding: 10px 12px;
    border-radius: 6px;
    background: #15283b;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.35;
    text-transform: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.congress-stats .approval-rate-card:hover::after,
.congress-stats .approval-rate-card:focus::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.congress-stats h2 {
    margin: 0 0 14px;
    color: var(--hero-color);
    font-size: 15px;
    text-transform: uppercase;
}

.congress-stats strong {
    color: var(--atomic-tangerine);
    font-size: 28px;
    line-height: 1;
}

.congress-bills-preview,
.congress-votes-section {
    margin-top: 34px;
}

.recent-bills-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 20px;
}

.recent-bills-list a {
    color:var(--flirt);
    font-weight: 700;
    line-height: 1.4;
}

.congress-action a,
.congress-action .link-button {
    color: var(--flirt);
    font-weight: 700;
}

/* Now a <button> submitting a POST form instead of an <a> tag, so the
   author-filtered bills search doesn't show a query string. */
.link-button {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.congress-vote {
    padding: 14px 0;
    border-bottom: 1px solid #e3e9ef;
}

.congress-vote strong {
    color: #15283b;
}

.congress-vote p {
    margin: 8px 0 0;
    line-height: 1.5;
}

.congress-source {
    margin-top: 26px;
    color: var(--flirt);
}

.congress-source a {
  color: var(--flirt);
}


@media (max-width: 640px) {
    .congress-detail-page {
        padding: 28px 18px 44px;
    }

    .congress-profile-summary,
    .congress-stats {
        grid-template-columns: 1fr;
    }

    .congress-info-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .committee-membership-list {
        grid-template-columns: 1fr;
    }
}

.congress-bills-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px;
}

.congress-bills-eyebrow {
    margin: 0 0 16px;
    color: #344452;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.congress-bills-page h1 {
    margin: 0 0 28px;
    color: #344452;
    font-size: 22px;
    text-transform: uppercase;
}

.congress-bills-list {
    display: grid;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.congress-bills-list a {
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
}

/* Bill difference page */
.diff-bill-link {
    color: inherit;
    text-decoration: underline;
}

.diff-bill-link:hover {
    color: var(--dark-pink);
}

.diff-back-link {
    display: inline-block;
    margin: 16px;
    padding: 10px 14px;
    border: 2px solid var(--background-hero);
    border-radius: 8px;
    background: var(--atomic-tangerine);
    color: var(--background-hero);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.diff-back-link:hover {
    background: var(--dark-pink);
    color: var(--atomic-tangerine);
    text-decoration: none;
}

.diff-versions {
    display: flex;
    gap: 1rem;
    margin: 24px 16px;
}

.diff-column {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    background: #fff;
}

.diff-column h2 {
    font-size: 15px;
    margin: 0 0 4px;
    color: var(--color-frame);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diff-step-name {
    margin: 0 0 10px;
    font-size: 13px;
    color: #4a5560;
    font-style: italic;
}

.diff-text {
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 13px;
    margin: 0;
    overflow-y: auto;
    max-height: 400px;
}

.diff-unavailable {
    color: #999;
    font-style: italic;
}

.diff-differences {
    margin: 24px 16px;
}

.diff-differences h2 {
    font-size: 16px;
    color: var(--color-frame);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 360px) {
    .diff-versions {
        flex-direction: column;
    }
}

/* Hybrid diff renderer */

.diff-status {
    margin: 12px 16px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    border-left: 4px solid #ccc;
}
.diff-status-equal   { border-left-color: #888; color: #555; }
.diff-status-info    { border-left-color: var(--color-frame); }
.diff-status-warning { border-left-color: var(--color-highlight); color: #762032; }

.diff-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 16px 14px;
}
.diff-summary-pill {
    background: var(--color-background);
    border: 1px solid var(--background-hero);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 12px;
    color: var(--background-hero);
}
.diff-summary-changed   { background: #fff7e0; border-color: #e8c879; }
.diff-summary-inserted  { background: #d9efd9; border-color: #80b780; color: #1f4d1f; }
.diff-summary-deleted   { background: var(--red-crayola); border-color:var(--red-crayola); color: #621f1f; }
.diff-summary-renamed   { background: #e6e9ff; border-color: #8590d0; color: #2b3380; }

.diff-node {
    margin: 0 16px 16px;
    background: white;
    border: 1px solid #d2d8d4;
    border-radius: 8px;
    overflow: hidden;
}
.diff-node-inserted { border-left: 4px solid var(--hero-color); }
.diff-node-deleted  { border-left: 4px solid #c25656; }
.diff-node-matched  { border-left: 4px solid var(--blue); }

.diff-node-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    padding: 8px 14px;
    background: #f6f8f4;
    border-bottom: 1px solid #e2e7df;
    font-size: 13px;
}
.diff-node-badge {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    color: #fff;
}
.diff-node-badge-matched  { background: var(--color-frame); }
.diff-node-badge-inserted { background: #4a8c4a; }
.diff-node-badge-deleted  { background: #c25656; }

.chamber-badge {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}
.chamber-badge--senado    { color: var(--color-chamber-senado);    background: var(--color-chamber-senado-bg); }
.chamber-badge--diputados { color: var(--color-chamber-diputados); background: var(--color-chamber-diputados-bg); }
.diff-node-id {
    font-family: monospace;
    font-size: 12px;
    color: #555;
}
.diff-node-label {
    flex: 1;
    font-weight: 600;
    color: #2a2a2a;
}
.diff-node-strategy {
    font-size: 11px;
    color: #888;
    font-style: italic;
}

.diff-hunk {
    border-top: 1px dashed #e2e7df;
}
.diff-hunk:first-of-type { border-top: none; }

.diff-hunk-header {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 6px 14px;
    background: #fafbfa;
    font-size: 11px;
    color: #6a7580;
}
.diff-hunk-op {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.diff-hunk-insert  .diff-hunk-op { color: #2d6b2d; }
.diff-hunk-delete  .diff-hunk-op { color: #983939; }
.diff-hunk-replace .diff-hunk-op { color: #8a6a1a; }

.diff-hunk-body {
    margin: 0;
    padding: 10px 14px 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.diff-tok-equal { color: #4a5560; }
.diff-tok-insert {
    background: #d9efd9;
    color: #1f4d1f;
    text-decoration: none;
    padding: 0 2px;
    border-radius: 2px;
}
.diff-tok-delete {
    background: #ffd9d9;
    color: #621f1f;
    text-decoration: line-through;
    padding: 0 2px;
    border-radius: 2px;
}

/* Split-view new classes */

.diff-summary-card {
    margin: 24px 16px;
    padding: 16px;
    background: var(--color-background);
    border: 1px solid var(--background-hero);
    border-radius: 8px;
    overflow: hidden;
}

.diff-summary-card-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-frame);
}

.diff-summary-card-body {
    margin: 0;
    font-size: 14px;
    color: var(--background-hero);
    line-height: 1.5;
}

.diff-panel {
    margin: 24px 16px;
    border: 1px solid var(--background-hero);
    border-radius: 6px;
    background: var(--background-hero);
    overflow: hidden;
}

.diff-panel-mobile {
    display: none;
}

.diff-panel-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--background-hero);
    background: var(--background-hero);
}

.diff-col-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-right: 1px solid var(--background-hero);
}

.diff-col-header:last-child {
    border-right: none;
}

.diff-col-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.diff-col-title {
    order: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--hero-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diff-col-date {
    font-size: 12px;
    color: #6a7580;
}

.diff-doc-link {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    padding: 4px 8px;
    border: 1px solid var(--atomic-tangerine);
    border-radius: 8px;
    background: var(--atomic-tangerine);
    color: var(--background-hero);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.diff-doc-link:hover {
    background: transparent;
    color: var(--atomic-tangerine);
    text-decoration: none;
}

.diff-doc-link .material-symbols-outlined {
    font-size: 16px;
    font-variation-settings: 'FILL' 0, 'wght' 400;
}

.diff-panel-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.diff-panel-col {
    padding: 12px;
    overflow-y: auto;
    max-height: 500px;
    font-size: 14px;
    color: #4a5560;
    line-height: 1.6;
}

.diff-panel-col:first-child {
    border-right: 1px solid #ccc;
}

.diff-panel-col-old {
}

.diff-panel-col-new {
}

.diff-node-label {
    margin: 12px 0 8px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #2a2a2a;
}

.diff-hunk-body {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.diff-hunk-body-old {
}

.diff-hunk-body-new {
}

.diff-node-unchanged {
    border-left-color: #ccc !important;
    opacity: 0.75;
}

.diff-node-label-unchanged {
    color: #888;
    font-weight: 500;
}

.diff-node-old {
}

.diff-node-new {
}

@media (max-width: 360px) {
    .diff-panel-body {
        grid-template-columns: 1fr;
    }
    .diff-panel-col:first-child {
        border-right: none;
        border-bottom: 1px solid #ccc;
    }
}

/* Responsive refinements for the bill, comparison, and congress-detail views. */
@media (max-width: 900px) {
    .bill-hero {
        padding: 24px 20px;
    }

    .bill-heading-meta {
        gap: 12px 20px;
        font-size: 17px;
    }

    .timeline-heading {
        padding: 14px 20px;
        font-size: 18px;
    }

    .timeline-container {
        padding: 32px 20px 64px;
    }

    .diff-panel-header,
    .diff-panel-body {
        grid-template-columns: 1fr;
    }

    .diff-panel-desktop {
        display: none;
    }

    .diff-panel-mobile {
        display: block;
    }

    .diff-mobile-version + .diff-mobile-version {
        border-top: 1px solid var(--hero-color);
    }

    .diff-panel-mobile .diff-col-header {
        border-bottom: 1px solid var(--hero-color);
    }

    .diff-panel-mobile .diff-panel-col {
        border: none;
    }

    .diff-col-header {
        border-right: none;
        border-bottom: 1px solid var(--hero-color);
    }

    .diff-col-header:last-child {
        border-bottom: none;
    }

    .diff-panel-col:first-child {
        border-right: none;
        border-bottom: 1px solid var(--hero-color);
    }
}

@media (max-width: 760px) {
    .congress-detail-page {
        padding: 28px 18px 44px;
    }

    .congress-profile-summary,
    .congress-stats {
        grid-template-columns: 1fr;
    }

    .congress-photo-wrap {
        width: min(176px, 100%);
    }

    .congress-stats {
        gap: 14px;
        margin-bottom: 28px;
    }

    .congress-stats article {
        padding: 18px 20px;
    }

    .diff-summary-card,
    .diff-panel {
        margin: 20px 12px;
    }

    .congress-bills-table thead {
        display: none;
    }

    .congress-bills-table,
    .congress-bills-table tbody,
    .congress-bills-table tr {
        display: block;
        width: 100%;
    }

    .congress-bills-table tr {
        margin-bottom: 16px;
        border: 1px solid var(--background-hero);
        border-radius: 8px;
        overflow: hidden;
    }

    .congress-bills-table > :not(caption) > * > * {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 14px;
        text-align: right;
        border-left: none;
        border-right: none;
    }

    .congress-bills-table td::before {
        content: attr(data-label);
        color: var(--background-hero);
        font-weight: 700;
        text-align: left;
    }
}

@media (max-width: 500px) {
    .page-details {
        padding-bottom: 0;
    }

    .bill-heading {
        font-size: 27px;
    }

    .bill-topline {
        gap: 10px;
        margin-bottom: 14px;
    }

    .bill-code {
        font-size: 17px;
    }

    .bill-status {
        font-size: 14px;
        padding: 7px 12px;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline-dot {
        left: -22px;
    }

    .timeline-content {
        padding: 14px;
    }

    .diff-col-title-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .diff-doc-link {
        margin-left: 0;
    }
}
