body {
    padding: 0px; 
    margin: 0px;
    font-family:Verdana, Arial, Helvetica, sans-serif; 
    font-size:1.1em;
    background-color: #f7ebdf;
  }

#wrapper {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0%;
	position:relative;

}

#content {
    width: 65%;
    padding-left: 10%;
	padding-right:10%;
	padding-top:20px;
	margin-left: auto;
	margin-right:auto;
    position: relative;
   	overflow-x:hidden;
    background-color: #f7ebdf;
}

#table-wrapper {
    width: 700px;
    margin-left: -30%;
    position: relative;
}
h1 { 
    font-family: arial, helvetica, sans-serif; 
    font-size: 200%; 
    font-style: bold; 
    text-align:center; 
    margin-bottom:7px; margin-left:7px; margin-top:17px; 
}
h2 {
    font-family: arial, helvetica, sans-serif; 
    font-size: 130%; 
    font-style: bold; 
    margin-bottom:0;
}
h3 {
    font-family: Arial; 
    font-size: 100%; 
    text-align:left; 
    color:#FFFFFF; 
    font-weight:bold; 
    background-color:#003300; margin-top:0
}
h5 {
    font-family: verdana, arial, helvetica, sans-serif; 
    font-size: 100%; 
    margin-bottom:0; margin-left:0px; 
}

h6 {
    font-family: arial, helvetica, sans-serif; 
    font-size: 120%; 
    font-style: bold; 
    margin-bottom:0;
	color:#F00;
}

#features {
	display:flex;
	flex-direction:row;
	align-items:flex-start;
	text-align:center;
	font-size:83%;
	flex-wrap:wrap;
	justify-content:space-evenly;
	width:100%;
	margin-top:20px;
	margin-left:auto;
	margin-right:auto;
	border-bottom:solid 2px #000;
	padding-bottom:10px;
}

#features .item-2:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

#features .item-1 {
	align-content:center;
	padding:0;
	flex-grow:1;
	margin-bottom:-90px;
	width:100%;
}	

#features .item-2 {
	flex-basis:300px;
	flex-shrink:0;
	flex-wrap:wrap;
	background-color:#f7ebdf;
	border: 1px solid #b8a898;
    padding: 16px 16px 16px 16px;
	margin-bottom:30px;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#features .image {
	width:245px;
	height:auto;
	margin: 0 auto 5px auto;
}

@media screen and (max-width: 870px) {
    #features {
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }
    #features .item-2 {
        flex-basis: auto;
        flex-shrink: 1;
        width: 90%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}
.author {
    font-style: italic;
	margin-bottom: 15px;
	padding-left:10%;
	display:inline-block;
}

.breadcrumbs {
	margin-bottom:40px;
	font-size:0.9em;
}

#article-header {
    display: flex;
    flex-direction: row;        /* side by side on desktop */
    align-items: center;
    text-align: left;
    width: 90%;
    margin: 25px auto 2px auto;
    padding-top: 25px;
    padding-bottom: 25px;
}

#article-header .item-2 {
    margin-top: 0;              /* remove the downward push */
    padding-left: 20px;        /* a little breathing room between image and text */
}

.indented-text {
	padding-left:40px;
}

ol.extra {
	margin-left:20px;
}

a {
	text-decoration: underline;
}

.content a:link {
	color:  #669900;	
	text-decoration:underline;
}

.content a:visited {
	color: #432812;	
}

.content a:hover {
	color: #432812;	
	text-decoration:underline;
}

.content a:active {
	color: #669900;	
}

/*begin style for book recommendation tile */

.book-recommendation {
  border: 1px solid #ddd;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  padding: 2%;
  margin: 1%;
  background-color: #fbf3e9;
  display: flex;
  align-items: center;
  flex-direction:row;
}

.book-cover {
  margin-right: 2%;
}

.book-cover img {
  min-width: 300px;  
  height: auto;
}

.book-info {
  height:100%;
}

.book-title {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 5px;
}

.book-author {
  font-style: italic;
  color: #555;
  margin-bottom: 10px;
}

.book-description {
  font-size: 0.9em;
  line-height: 1.4;
}

/* end style for book recommendation tile*/


.indent {
    margin-left: 30px; 
    margin-top:0
}

.indent2x {
    margin-left: 60px; 
    margin-top:0
}

.call-out {
    margin : 0 20px 0 20px;
	font-style: italic;
	border: solid 1px #000000;
	padding:1em;
	background-color:hsl(210, 0%, 88%);
}

.call-out2 {
    width:70%;
	margin : 0 auto 0 auto;
	border: solid 1px #000000;
	padding:1em;
	background-color:#F6F99C;
}

ul {
    margin-left: 10px;
    padding-left: 10px;
}

ul li {
        list-style-position: outside;
		margin-left:20px;
}

.indent3x {
    margin-left: 90px; 
    margin-top:0
}

.center-text {
    text-align: center;
}

.video {
    margin-left: 60px; 
    margin-top:0
}

#tile-wrapper {
	text-align:center;
}

#image-tile  {
  border: thin silver solid;
  display:inline-block;
  max-width:95%;
  margin-right: auto;
  margin-left:auto;
  margin-top:10px;
  margin-bottom:10px;
  padding: 0.5em 0.5em 0 0.5em;
  overflow:hidden;
}

.img-credit {
	text-align:left;
	font-size:small;
	line-height:1em;
	margin-top:2px;
}

.image-tile-text {
  text-align: left;
  font-weight: bold;
  font-size: smaller;
  text-indent: 0;
  padding-bottom:7px;
  width: 100%
}

.figure {
  width: 320px;
  border: thin silver solid;
  margin-right: auto;
  margin-left:auto;
  padding: 0.5em;
}

.figure p {
  text-align: left;
  font-weight: bold;
  font-size: smaller;
  text-indent: 0;
  width: 100%
}

.image-indent {
	margin-left: 7px;
}

.image-center {
	margin-left:auto;
	margin-right:auto;
}

/* css for watermark images */

/* css for watermark images */

.watermark-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 40px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.watermark-item {
    margin: 0 auto 40px auto;
    max-width: 567px;        /* match your actual image width */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.watermark-item img {
    width: 100%;             /* always fill the container width */
    height: auto;            /* height scales proportionally */
    display: block;
}

.watermark-caption {
    margin-top: 6px;
    margin-bottom: 0;
    text-align: center;
    font-size: 0.9em;
}

/* end watermark images */

/* end watermark images */



#form-border {
	border: 3px solid #432812;
    margin-left: 10%;
    margin-bottom: 1em;
    width: 70%;
    padding: 3% 10% 3% 5%;
    -webkit-border-radius: 10px 10px 10px 0px;
    -moz-border-radius: 10px 10px 10px 10px;
    border-radius: 10px 10px 10px 10px;
    line-height: 1.5em;
}

.imgshadow {
	background:#FFFFFF;
	padding:4px;
	border:1px solid #777777;
	margin-top:5px;
	-moz-box-shadow:0px 0px 5px #666666;
	-webkit-box-shadow:0px 0px 5px #666666;
	box-shadow:0px 0px 5px #666666;
}

.img_left {
	width:auto;
	float:left;
	margin:5px 15px 5px 15px;
}

.responsive {
	width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

#page-footer { 
	font-family: Verdana, Geneva, sans-serif;
	bottom:0;
	background-color: #432812;
	color: #f7ebdf;
	font-size:83%;
	text-align:center;
	max-width: 100%;
	margin-top:50px;
	padding-bottom:1%;
	padding-top:20px;
	clear: both;
	z-index:1;
	overflow-x:hidden;
}

#page-footer a:link {
	color:#f7ebdf;
	text-decoration:none;
}  /* unvisited link */

#page-footer a:visited {
	color:#ffffff !important;
	text-decoration:none;
}  /* visited link */

#page-footer a:hover {
	color:#cf2e2e;
	text-decoration:none;
}  /* mouse over link */

#page-footer a:active {
	color:#f7ebdf;
	text-decoration:none;}  /* selected link */ 

#page-header {
	width:80%;
	margin-left:auto;
	margin-right:auto;
	position:relative;
	top:0;
	opacity:1.0;
    border-bottom:solid #432812 2px; 
	z-index:9999;
	display:flex;
	flex-direction:column;
	/* Assign default order for desktop */   
}

#top-menu { order: 1; }
#masthead { order: 2; }
#header-tagline { order: 3; }
#topnav-wrapper { order: 4; }	

#top-menu {
 	display:flex;
	gap:20px;
	justify-content:flex-end;
	align-items:right;
	width: 100%;
	height: 100%;
	margin-right:0;
	margin-top:5px;
	margin-bottom:15px;
	font-family:Arial, Helvetica, sans-serif;
	font-size: 83%;
	font-weight:500;
	padding-top: 2px;
	list-style: none;
}

#top-menu ul {
	display: flex;
    align-items: center;
    margin: 0;
    padding-right: 10%;
}

#top-menu li {
    display: flex;
	align-items:center;
    margin-right: 20px;
	margin-left:20px;
}

.search-item {
    position: relative;
}

#top-menu a:link {
    display:block;
	color:#000;
    text-align:center;
    text-decoration:none;
}

#top-menu a:visited {
    display:block;
	color:#000;
    text-align:center;
    text-decoration:none;
}

#top-menu a:hover {
    display:block;
	color:#cf2e2e;
	font-weight:bold;
    text-align:center;
    text-decoration:none;
}

#top-menu a:active {
    display:block;
	color:#000;
    text-align:center;
    text-decoration:none;
}

#top-menu .button {
  padding: 3px 6px;
  background-color: #432812;
  font-weight:600;
  color:white;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  margin-top:7px;
}

#top-menu .button a:link {
	color:white !important;
	background-color: #432812;
}

#top-menu .button a:visited {
	color:white;
	background-color: #432812 !important;
}

#top-menu .button a:hover {
	color:white;
	background-color: #432812 !important;
}

#top-menu .button a:active {
	color:rgba(255,255,255,1);
	background-color: #432812 !important;
}

/* end code for top-menu styling */

#masthead {
	width:80%;
	opacity:1.0;
	text-align:center;
	margin-left:auto;
	margin-right:auto;
}

/* FIX: constrain logo image to 70% of masthead width */
.header-main {
	width: 70%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.header-main a {
	display: block;
	width: 100%;
}

.header-main img.responsive {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
}

@media screen and (max-width: 870px) {
    #main-image img {
        width: 100%;
        max-width: 100%;
    }
}

#header-tagline {
	font-family:Verdana, Geneva, sans-serif;
	font-size:1em;
	font-weight:600;
	text-align:center;
	position: relative;
	background-color: #f7ebdf;
	margin-top:-25px;
	padding:0;
}


/*Begin styling for Responsive Dropdown Menu */

#topnav-wrapper {
	width:80%;
    margin-left: auto;
    margin-right: auto;
	z-index:10000 !important;
}

/* FIX: changed display:block to display:flex so justify-content:center works */
.topnav {
  background-color: #f7ebdf;
  color:#432812;
  overflow: hidden;
  margin-left:auto;
  margin-right:auto; 
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-height: 52px; 
  transition: max-height 0.4s ease-in-out;
}

/* Style the links inside the navigation bar */
.topnav a {
  display: inline-block;
  text-align: center;
  color: #432812;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  margin-left: 16px;
  margin-right: 16px;
  font-weight: 600;
  vertical-align: middle;
}

.topnav a, .dropdown, .dropdown .dropbtn {
    vertical-align: middle;
}

/* Add an active class to highlight the current page */
.active {
  background-color: #FFFFFF;
  color: #432812;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* Dropdown container - needed to position the dropdown content */
.dropdown {
  display: inline-block;
  text-align: center;
  overflow: hidden;
}

.dropbtn {
	font-weight:600;
    background-color: inherit; 
    color: #432812;
}

/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
  font-size: 17px;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-family: inherit;
  margin-left: 16px;
  margin-right: 16px;
  vertical-align: middle;
  cursor: pointer;
}

/* Style the dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  margin-top: 0px;
  margin-left: 16px;
  padding: 8px 8px 8px 8px;
  position: absolute;
  background-color: #e8d5c0;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Style the links inside the dropdown */
.dropdown-content a {
  float: none;
  color: #432812;
  font-size:14px;
  padding: 8px 8px;
  text-decoration: none;
  display: block;
  font-weight: 400;
  text-align: left;
}

.dropdown-content a:link,
.dropdown-content a:visited {
  color: #432812;
}

.dropdown-content a:hover,
.dropdown-content a:visited:hover {
  background-color: #432812;
  color: black !important;
}

.dropdown-content a:visited {
  color: black;
}

.dropdown-content a:hover {
  color: black;
}

/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #e8d5c0;
  color: #000000;
}

/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover,
.dropdown-content a:visited:hover {
  background-color: #f7ebdf;
  color: black !important;
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
}

/* 1. Hide the mobile-specific links by default (Desktop view) */
.mobile-only-links {
    display: none !important;
}

/* 2. Mobile-specific behavior (870px and below) */
@media screen and (max-width: 870px) {
    
    /* Hide the desktop top-menu bar */
    #top-menu {
        display: none !important;
    }

    /* Keep mobile links hidden while hamburger is CLOSED */
    .topnav a.mobile-only-links, 
    .topnav span.mobile-only-links {
        display: none;
    }

    /* ONLY show mobile links when the menu is OPENED (with .responsive class) */
    .topnav.responsive .mobile-only-links {
        display: block !important;
        float: none;
        text-align: left;
        width: 100%;
        padding: 14px 16px;
    }
}

/* 3. General Tablet/Mobile width adjustments */
@media screen and (max-width: 1100px) {
    #topnav-wrapper {
        width: 95%;
    }
    .topnav a, .dropdown .dropbtn {
        margin-left: 10px;
        margin-right: 10px;
        font-size: 15px;
    }
    .book-recommendation {
        flex-direction: column;
    }
}


/* --- Mobile Styles (@media screen and (max-width: 870px)) --- */
@media screen and (max-width: 870px) {

#body {
	font-size:0.9em;
}

#page-header {
        display:flex;
		flex-direction:column;
		width: 100%;
		border-bottom:none;
}

#top-menu { display:none; }

#topnav-wrapper { 
    order: 1;
    width: 100%; 
    display: flex; 
    justify-content: flex-end;
}	

.topnav {
        width: 100%;
        justify-content: flex-end;
	    max-height: 52px;
        overflow: hidden;
        transition: max-height 0.9s ease-in-out;
}

/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #FFFFFF;
  color: #000000;
}

.topnav a:visited {
  background-color: #FFFFFF;
  color: #432812;
}

.topnav a {
  font-size: 17px;
  font-weight: 600;
  vertical-align: middle;
  align-content: center;
}

.topnav.responsive .dropbtn {
  font-size: 17px;
  font-weight: 600;
}

.topnav.responsive .dropdown-content a {
  font-size: 13px;
  font-weight: 400;
}

 #masthead {
    order: 2; 
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* FIX: full width on mobile, centered */
.header-main {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#masthead img.responsive {
    min-width: 300px;
    width: 100%;
    height: auto;
}

#header-tagline { 
    order: 3; 
    font-size:.8em;
	width:100%;
	text-align:center;
}

/* FIX: full-width content on mobile with box-sizing so padding doesn't overflow */  
#content {
    width: 100%;
    padding-left: 3%;
    padding-right: 3%;
    padding-top: 5px;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

h1 {
	font-size:150%;
}

h2 {
	font-size:110%;
}

.breadcrumbs {
	display:none;
}

 /* Hide ALL links except the icon by default on small screens */
  .topnav a, .topnav .dropdown {
    display: none;
  }
   
  /* Ensure the icon is always displayed */
  .topnav a.icon {
    margin-left: 0;
	float: right;
    display: block;
	font-size: 35px;
    padding: 10px;
}

/* Hide the icon when the menu is in expanded (responsive) state */
  .topnav.responsive a.icon {
    display: none !important; 
}

  /* Styles applied when the "responsive" class is added */
  .topnav.responsive {
    position: relative;
    display: block;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;    
    max-height: 800px;
    transition: max-height 0.6s ease-in-out;
}

  /* Position and style the hamburger icon when menu is open */
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
    background-color: transparent !important; 
    color: #432812 !important;
  }

  .topnav.responsive a, .topnav.responsive .dropdown {
    float: none;
    display: block;
    text-align: left;
    width: 100%;
  }

  /* Fix Home button visibility and general link hover fix */
  .topnav.responsive a.active,
  .topnav.responsive a.active:hover, 
  .topnav.responsive a.active:focus { 
    background-color: #FFFFFF !important; 
    color: #432812 !important;            
  }
  
  /* Prevent the #FF6 background color on hover for *all* standard menu links in mobile view */
  .topnav.responsive a:hover:not(.active) {
    background-color: #f9f9f9;
    color: #432812;
  }
  
  /* Add uniform border-bottom to all main menu items */
  .topnav.responsive a,
  .topnav.responsive .dropbtn {
    border-top: none; 
    border-bottom: solid #432812 2px; 
    margin: 0;
	width:100%;
  }
  
  .topnav.responsive a {
      padding-left: 14px;
      padding-right: 10px;
  }
  
  .topnav.responsive a:first-of-type,
  .topnav.responsive .dropdown:first-of-type .dropbtn {
      border-top: none;
  }

  /* Fix for the dropdown button formatting in responsive mode */
  .topnav.responsive .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 16px; 
    border-left: none;
    border-right: none;
    background-color: #FFFFFF; 
    color: #432812;  
  }
  
  /* Handle the dropdown content specifically for the responsive view */
  .topnav.responsive .dropdown-content {
    position: relative; 
    display: none; 
    width: 100%;
    box-shadow: none; 
    background-color: #f9f9f9; 
  }

  /* Style for dropdown links within the responsive menu */
  .topnav.responsive .dropdown-content a {
    padding-left: 30px; 
	font-size:12px;
    background-color: inherit; 
    border: none; 
  }
  
  /* Add hover/click effects to the responsive dropdown button */
  .topnav.responsive .dropdown:hover .dropdown-content {
    display: block;
  }
  
  .video {
    margin-left: 0; 
    margin-top:0;
}

#article-header {
	display:flex;
	flex-direction:column;
	flex-flow:row-wrap;
	align-items:center;
	text-align:left;
	width:90%;
	margin:25px auto 2px auto; 
	padding-top:5px;
	padding-bottom:5px;
}

#article-header .item-1 {
	padding-left:5%;
}

#article-header .image1 {
    flex-shrink: 1;
    padding-right: 1%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;    /* add this */
}

#article-header .image1 img {
    display: inline-block;  /* add this block */
    max-width: 100%;
    height: auto;
}

#article-header .item-2 {
	margin-top:5%;
}


#page-footer {
	margin-top:0;
}

#form-border {
	border: 2px solid #432812;
    margin-left: auto;
	margin-right:auto;
    margin-bottom: 1em;
    width: 85%;
}

/* mobile-only-links shown when hamburger is open */
.topnav.responsive .mobile-only-links {
    display: block !important;
    float: none;
    text-align: left;
    width: 100%;
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

}
/* end mobile styles */

/* =====================================================
   Stamp image frames (why-collect-brazil.php and similar pages)
   ===================================================== */

.stamp-frame {
    display: inline-block;
    border: 1px solid #000;
    padding: 6px 6px 2px 6px;
    background: #fff;
    box-sizing: border-box;
}

.stamp-frame img {
    display: block;
    max-width: 100%;
    height: auto;
}

.stamp-caption {
    font-size: 0.8em;
    font-style: italic;
    text-align: center;
    margin: 4px 0 3px 0;
    min-height: 1.2em;   /* keeps space even when caption is empty */
    color: #333;
}

/* Float variants for inline-with-text placement */
.stamp-float-right {
    float: right;
    margin: 4px 0 12px 28px;
    max-width: 220px;
    width: 35%;
}

.stamp-float-left {
    float: left;
    margin: 4px 28px 12px 0;
    max-width: 220px;
    width: 35%;
}

.stamp-float-right .stamp-frame,
.stamp-float-left  .stamp-frame {
    width: 100%;
}

/* Centered full-width frame (angel block at page bottom) */
.stamp-frame-centered {
    display: block;
    border: 1px solid #000;
    padding: 8px 8px 2px 8px;
    background: #fff;
    margin: 30px auto 20px auto;
    width: fit-content;
    max-width: 100%;
    text-align: center;
}

.stamp-frame-centered img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Responsive: stack floats on narrow screens */
@media screen and (max-width: 600px) {
    .stamp-float-right,
    .stamp-float-left {
        float: none;
        display: block;
        margin: 12px auto;
        width: 80%;
        max-width: 260px;
    }
}

.page-title-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.page-title-block h1 {
    margin: 0;
    text-align: left;
}

.page-title-block .stamp-frame {
    flex-shrink: 0;
}

@media screen and (max-width: 870px) {
    .page-title-block {
        flex-direction: column;
        align-items: center;
    }
    .page-title-block h1 {
        text-align: center;
    }
}
@media screen and (min-width: 1200px) {
    .page-title-block {
        justify-content: center;
    }
}

img[src*="gass2027"] {
    max-width: 800px;   /* adjust to the actual pixel width of the image */
    width: 100%;
    height: auto;
    display: block;
}

img[src*="MEPSIHeadquarters"] {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
}

img[src*="mepsicolor-150px"] {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
}

img[src*="napex-logo"] {
    max-width: 300px;   /* adjust to the actual pixel width of the image */
    width: 100%;
    height: auto;
    display: block;
}
#main-image {
    display: block;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -18px;
    margin-bottom: 20px;
}

#main-image img {
    display: block;
    width: 79%;
    max-width: 80%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

#main-image img {
	display:block;
	max-inline-size:100%;
	height:auto;
	margin-left:auto;
	margin-right:auto;
}


/* ── Expertization fee tiles ── */
.fee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 1.5rem auto;
    max-width: 900px;
}
.fee-card {
    background: #fbf3e9;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fee-card.featured { border: 2px solid #185FA5; }
.fee-card .tier-name { font-size: 15px; font-weight: bold; margin: 0; }
.fee-card .tier-range { font-size: 13px; color: #666; margin: 0 0 8px; }
.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid #e8e8e8;
    padding-top: 8px;
    margin-top: 4px;
}
.fee-amount { font-size: 20px; font-weight: bold; }
.fee-label  { font-size: 12px; color: #666; }
.fee-note   { font-size: 11px; color: #888; margin-top: 6px; line-height: 1.4; }
.popular-badge {
    display: inline-block;
    background: #ddeeff;
    color: #185FA5;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-weight: bold;
}
.fee-intl-note { 
	font-size: 13px; 
	color: #666; 
	margin-top: 4px; 
	margin-left:25px;
	margin-right:0px;
}

/* ── Download buttons ── */
.dl-label {
    text-align: center;
    font-size: 15px;
    color: #7a6a5a;
    font-weight: normal;
    margin: 0 0 14px;
}
.dl-buttons {
    display: flex;
    flex-direction: column;
	align-items: center;    /* centers the buttons horizontally */
    gap: 8px;
    margin-bottom: 1.5rem;
}
.btn-download {
    display: block;
    width: 40%;
    background: #432812;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    padding: 14px 20px;
    border-radius: 4px;
    border: 1.5px solid #432812;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease;
}
.btn-download:hover {
    background: #ffffff;
    color: #432812;
}

.btn-download-small {
	font-size:9px;
}

/* ── Dues table ── */
.dues-table-wrap {
    overflow-x: auto;          /* enables horizontal scroll on narrow screens */
    margin: 1.5rem auto;
    max-width: 700px;
}

.dues-table {
    width: 100%;
    border-collapse: collapse;
    background: #fbf3e9;
    font-size: 0.95em;
    text-align: center;
}

.dues-table th,
.dues-table td {
    border: 1px solid #b8a898;
    padding: 10px 12px;
    vertical-align: middle;
    line-height: 1.4;
}

/* Header row */
.dues-table thead th {
    background-color: #432812;
	color:#ffffff;
    font-weight: bold;
    text-align: center;
}

/* Section subheader rows */
.dues-table .section-header td {
    background-color: #d9bfa0;
	color:#000000;
    font-weight: bold;
    text-align: center;
    font-size: 0.95em;
}

/* Data rows — alternate very subtly */
.dues-table tbody tr:not(.section-header) td {
    background-color: #fbf3e9;
}

/* First column left-aligned on wider screens */
.dues-table tbody tr:not(.section-header) td:first-child {
    text-align: center;
}

/* Responsive: stack rows into cards on small screens */
@media screen and (max-width: 870px) {

    .dues-table-wrap {
        overflow-x: visible;   /* no longer needed once stacked */
    }

    .dues-table,
    .dues-table tbody {
        display: block;
        width: 100%;
    }

    /* Column headings aren't needed once each value gets its own label */
    .dues-table thead {
        display: none;
    }

    /* Section divider rows stay full-width banners */
    .dues-table .section-header {
        display: block;
        width: 100%;
    }
    .dues-table .section-header td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        border-radius: 4px;
        margin-top: 14px;
    }
    .dues-table .section-header:first-child td {
        margin-top: 0;
    }

    /* Each data row becomes its own card */
    .dues-table tbody tr:not(.section-header) {
        display: block;
        width: 100%;
        box-sizing: border-box;
        background-color: #fbf3e9;
        border: 1px solid #b8a898;
        border-radius: 6px;
        margin: 8px 0;
        overflow: hidden;
    }

    .dues-table tbody tr:not(.section-header) td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        text-align: right;
        border: none;
        border-bottom: 1px solid #e4d6c3;
        padding: 8px 12px;
        font-size: 0.9em;
    }
    .dues-table tbody tr:not(.section-header) td:last-child {
        border-bottom: none;
    }

    /* Show the column name as a label in front of each value */
    .dues-table tbody tr:not(.section-header) td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #432812;
        text-align: left;
        flex-shrink: 0;
    }
}

/* ── Leadership table ── */
.leadership-table-wrap {
    overflow-x: auto;
    margin: 1.5rem auto;
    max-width: 650px;
    width: 100%;
}

.leadership-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    text-align: left;
    table-layout: fixed;
}

.leadership-table th,
.leadership-table td {
    border: 1px solid #b8a898 !important;
    padding: 10px 14px;
    vertical-align: middle;
    line-height: 1.4;
    background-color: #fbf3e9;
}

/* Column header row */
.leadership-table thead th {
    background-color: #432812 !important;
    color: #ffffff !important;
    font-weight: bold;
    text-align: left;
}

/* Category section headers */
.leadership-table .category-header td {
    background-color: #d9bfa0 !important;
    color: #000000 !important;
    font-weight: bold;
    text-align:left;
}

/* Term year column — centered (data rows only) */
.leadership-table tbody tr:not(.category-header) td:last-child {
    text-align: center;
}

/* Column widths */
.leadership-table th:nth-child(1),
.leadership-table td:nth-child(1) { width: 35%; }
.leadership-table th:nth-child(2),
.leadership-table td:nth-child(2) { width: 40%; }
.leadership-table th:nth-child(3),
.leadership-table td:nth-child(3) { width: 25%; }

/* Responsive */
@media screen and (max-width: 870px) {
    .leadership-table {
        font-size: 0.85em;
    }
    .leadership-table th,
    .leadership-table td {
        padding: 8px 6px;
    }
}
/* ── Home page tile ── */

#home-tile {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 650px;
    margin: 1.5rem auto;
    background: #fbf3e9;
    border: 1px solid #b8a898;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-tile:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.home-tile-img {
    flex: 0 0 45%;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 16px 0 16px 16px;
    box-sizing: border-box;
}

.home-tile-img img {
    width: 100%;
    height: auto;
    display: block;
}

.home-tile-text {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-tile-text h3 {
    margin: 0 0 8px;
    font-size: 1.2em;
    color: #ffffff;
}

.home-tile-text p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: #333;
}

/* Responsive: stack image above text on mobile */
@media screen and (max-width: 870px) {
.home-tile {
    flex-direction: column;
    max-width: 100%;
}
.home-tile-img {
    flex: 0 0 auto;
    width: 100%;
	padding:0;
}
.home-tile-text {
    padding: 12px 16px;
}
}

/* ── Footer columns ── */
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px;
    gap: 110px;
}


.footer-col {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.footer-col p {
    margin: 0 0 8px;
}


@media screen and (max-width: 870px) {
    .footer-columns {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }
}

.footer-col:nth-child(3) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-col:nth-child(3) a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col:nth-child(3) img {
    display: block;
    vertical-align: middle;
}

@media screen and (min-width: 871px) {
    .footer-col {
        padding-top: 16px;
    }
}

/* ══════════════════════════════════════════════
   Member Exhibits pages
   ══════════════════════════════════════════════ */

/* ── Exhibits index page: tile grid ── */
.exhibit-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin: 1.5rem 0 2.5rem;
}

.exhibit-tile {
    display: block;
    background: #ffffff;
    border: 1px solid #b8a898;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.exhibit-tile:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.exhibits-h1 {
    margin: 0;
    text-align: left;
}

.exhibit-tile-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5ede0;
}

.exhibit-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.exhibit-tile-caption {
    padding: 12px 14px;
    text-align: center;
}

.exhibit-tile-caption .exhibitor-name {
    margin: 0 0 4px;
    font-weight: italic;
    font-size: 0.9em;
    color: #432812;
}

.exhibit-tile-caption .exhibit-title {
    margin: 0 0 6px;
    font-size: 1.05em;
    color: #333;
    font-style: bold;
}

.exhibit-tile-caption .exhibit-page-count {
    margin: 0;
    font-size: 0.8em;
    color: #888;
}

/* ── Individual exhibit gallery page ── */

/* ── Individual exhibit gallery page ── */
.subtitle {
    font-size: 1.1em;   /* adjust this value to taste */
    color: #555;
    margin-top: 4px;
}
.panel-label {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #432812;
    border-bottom: 1px solid #d9bfa0;
    padding-bottom: 6px;
}

.exhibit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 1.5rem;
}

.exhibit-grid a {
    display: block;
    border: 1px solid #b8a898;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
}

.exhibit-grid img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.exhibit-grid img:hover {
    opacity: 0.85;
}

/* Responsive */
@media screen and (max-width: 870px) {
    .exhibit-index-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    .exhibit-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
}

<!-- aMember Form Field Customizations -->
#amember-signup-form input[name="other_societies"] {
    width: 150px;
}

#amember-signup-form input[name="collecting_interests"] {
    width: 150px;
}

.alert {
	font-size:32px;
	color:#F00;
	text-align:center;
}

.expertization-thumb {
  max-width: 400px;
  cursor: pointer;
  border: 1px solid #b8a898;
}

/* ── Mexicana Archive Page Styles ────────────────────────────────── */

/* Decade jump navigation */
.decade-nav {
    margin: 0 0 26px;
    font-size: 0.9em;
}
.decade-nav-label {
    font-weight: bold;
    color: #432812;
    margin-right: 6px;
}
.decade-nav a {
    display: inline-block;
    margin: 3px 4px 3px 0;
    padding: 4px 11px;
    border: 1px solid #b8a898;
    border-radius: 4px;
    background-color: #fbf3e9;
    color: #432812;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.15s;
}
.decade-nav a:hover {
    background-color: #d9bfa0;
}

/* Invisible anchor offset so decade links land below the site header */
.decade-anchor {
    display: block;
    height: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Per-year tile */
.mexicana-year-tile {
    background-color: #fbf3e9;
    border: 1px solid #b8a898;
    border-radius: 6px;
    padding: 16px;
    width: fit-content;
}

.mexicana-year-heading {
    font-size: 1.2em;
    font-weight: bold;
    color: #432812;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #d9bfa0;
}

/* Row of issue thumbnails inside each year tile */
.mexicana-issues-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.mexicana-tiles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

/* Wider content area for the archive page only */
#content.content-archive {
    width: 80%;
    padding-left: 3%;
    padding-right: 3%;
}

/* Individual issue: thumbnail + month label */
a.mexicana-issue {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #432812;
}

a.mexicana-issue img {
    width: 110px;      /* display at 1/4 of the 440px generated thumbnail */
    height: auto;
    border: 1px solid #b8a898;
    display: block;
    transition: opacity 0.15s, box-shadow 0.15s;
}

a.mexicana-issue:hover img {
    opacity: 0.82;
    box-shadow: 0 2px 8px rgba(67, 40, 18, 0.3);
}

.mexicana-issue-label {
    margin-top: 5px;
    font-size: 0.78em;
    text-align: center;
    line-height: 1.3;
}

/* PhotoSwipe: Download PDF button */
.pswp__button--download-pdf {
    width: auto !important;
    padding: 0 14px !important;
    font-size: 0.8em !important;
    font-weight: bold;
    color: #fff !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center;
    letter-spacing: 0.02em;
}
.pswp__button--download-pdf:hover {
    color: #d9bfa0 !important;
}

/* ── Mobile breakpoint ───────────────────────────────────────────── */
@media screen and (max-width: 870px) {

.mexicana-tiles-grid {
    display: block;
}
.mexicana-year-tile {
    width: auto;
    margin-bottom: 16px;
}

    .mexicana-issues-row {
        gap: 10px;
    }

    a.mexicana-issue img {
        width: 80px;
    }

    .mexicana-issue-label {
        font-size: 0.72em;
    }
}

/* ── Fees table: stay as a table on mobile (no card stacking) ── */
@media screen and (max-width: 870px) {

    .fees-table-wrap .dues-table {
        display: table !important;
        width: 100% !important;
        font-size: 0.78em !important;
        table-layout: fixed !important;
    }

    /* tbody must be table-row-group, NOT table — setting it to 'table' creates
       a broken nested-table rendering that collapses all cells into one column */
    .fees-table-wrap .dues-table tbody {
        display: table-row-group !important;
    }

    .fees-table-wrap .dues-table thead {
        display: table-header-group !important;
    }

    .fees-table-wrap .dues-table tbody tr:not(.section-header) {
        display: table-row !important;
        width: auto !important;
        background-color: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .fees-table-wrap .dues-table tbody tr:not(.section-header) td {
        display: table-cell !important;
        text-align: center !important;
        border: 1px solid #b8a898 !important;
        border-bottom: 1px solid #b8a898 !important;
        padding: 6px 5px !important;
        font-size: 1em !important;
    }

    .fees-table-wrap .dues-table tbody tr:not(.section-header) td::before {
        display: none !important;
        content: '' !important;
    }

    .fees-table-wrap .dues-table th {
        padding: 6px 5px !important;
    }

    /* Explicit column widths so header text can't skew distribution */
    .fees-table-wrap .dues-table th:nth-child(1),
    .fees-table-wrap .dues-table td:nth-child(1) { width: 44% !important; }

    .fees-table-wrap .dues-table th:nth-child(2),
    .fees-table-wrap .dues-table td:nth-child(2) { width: 28% !important; }

    .fees-table-wrap .dues-table th:nth-child(3),
    .fees-table-wrap .dues-table td:nth-child(3) { width: 28% !important; }
}

/* ── Member alert tile ── */
.alert-tile {
    width: 80%;
    background-color: #fff5f5;
    border: 2px solid #b30000;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 20px auto 24px auto;
    box-sizing: border-box;
}

.alert-tile-heading {
    font-size: 1.2em;
    font-weight: bold;
    color: #b30000;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.alert-tile-body {
    font-size: 0.9em;
    color: #000000;
    margin: 0;
    line-height: 1.5;
}

@media screen and (max-width: 870px) {
    .alert-tile {
        width: 100%;
    }
}
.article-img-left {
  float: left;
  margin: 4px 18px 10px 0;
  max-width: 100%;
}

.article-img-left figcaption {
  font-size: 0.65em;
  color: #432812;
  text-align: center;
  margin-top: 4px;
}

a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.7;
}