
.center {
    text-align: center;
}

.full-width {
	margin-left: -60px;
	margin-right: -60px;
}
.full-width.top {
	margin-top:  -30px;
}
.full-width.bottom {
	margin-bottom:  -30px;
}

.header {
    font-size: 16px;
    padding-top: 8px;
    font-family: 'Protipo';
    max-width: 1040px;
    margin: 0 auto; /* this centers it */
    padding-left: 1rem;  /* optional for mobile breathing room */
    padding-right: 1rem;
}


.header-grid {
  display: grid;
  grid-template-columns: auto 1fr minmax(160px, 240px);
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.25rem;
  align-items: center;
}

/* Logo takes up both rows */
.logo {
  grid-row: 1 / span 2;
  grid-column: 1 / 2;
  width: 180px; /* or whatever fits your logo */
}

/* Quick Links - top row */
.header-links {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  width: 100%;
  margin: 0;
  padding: 0;
}
.header-links ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.header-links li:not(:last-child)::after {
  content: "|";
  margin-left: 1rem;
  color: #999;
}

/* Search Bar - top row */
.desktop-search {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  justify-self: end;
}

.searchform {
  display: flex;
  width: 100%;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.searchform input.s {
  width: 100%;
  padding: 4px 6px;
  font-size: 0.9rem;
}
.searchform input[type="submit"],
.searchform .searchsubmit {
  display: none;
}


.header-links,
.header-links ul,
.header-links li,
.header-links a,
.searchform,
.searchform input {
  line-height: 1;
}


/* Mission Statement - full width of right side */
.mission {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.logo a {
	margin: 2px 0 0;
	background-image: url('/images/logo.webp');
	background-repeat: no-repeat;
	background-size: contain;
	border: 0;
	display: block;
	width:100%;
	padding-bottom: 40.61%;
}

.parent-link {
  font-size: 0.75rem;
  margin: 0 0 4px 0;
}

.parent-link a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #d1d5db;
}

.parent-link a:hover {
  border-bottom-color: #2C4766;
}

.product-nav {
        margin: 0 auto;
        width: 100%;
        max-width: 1040px;
        display:table;
        position:relative;
        border-collapse: collapse;
        border-spacing: 0;
        z-index: 1000;
        background: #1E3550;
}

.desktop-menu {
	width: 80%;
	display: table-cell;
	line-height: 50px;
}
.desktop-menu ul {
	list-style: none;
}
.desktop-menu ul li {
	display: inline-block;
}
.desktop-menu ul li a {
	display: inline-block;
	line-height: 50px;
	padding: 0 16px;
}
ul.product-menu {
	max-width: 1040px;
	margin: 0 auto;
	list-style: none;
	position: relative;
	z-index: 10;
}
ul.product-menu li {
	display: inline-block;
}
ul.product-menu li a {
	font-size: 16px;
	display: inline-block;
	line-height: 45px;
	padding: 0 14px;
	color: white;
}
ul.product-menu li, ul.mobile-menu li {
	position:relative;
}
ul.product-menu > li > .children, ul.mobile-menu > li > .children {
	display:none;
	position: absolute;
	background: #1E3550;
	padding: 2px ;
	min-width: 100%;
	z-index: 1; 
}
ul li .children li {
	display: block;
	color: white;
}
ul li .children li a {
	line-height: 25px;
	padding: 0 0px;
	display: inline-block;
	white-space: nowrap;
	color: white;
}
ul.product-menu > li > .children > li > a {
	padding-left: 10px;
	padding-right: 10px;
}
ul.mobile-menu {
	display: none;
}
ul.mobile-menu li {
	display:inline-block;
	position:static;
}
ul.mobile-menu li span.active {
	background: #000;
}
ul.mobile-menu li .expand {
	cursor: pointer;
	padding: 0 15px;
	display:inline-block;
	line-height: 45px;
	font-weight: 500;
}
ul.mobile-menu > li > ul.children {
	width:100%;
	left: 0;
	margin: 0;
	display: none;
}
ul.mobile-menu > li > ul.children a {
	color: white;
}
ul.mobile-menu > li > ul.children > li.parent > a {
	color: white;
}
ul.mobile-menu li.parent > a::after {
	content: '+';
	padding-left: 4px;
}
ul.mobile-menu li.parent > a.active::after {
	content: '-';
}
ul.mobile-menu > li > ul > li > ul {
	margin-left: 10px;
	border-left: 1px solid #999;
	display:none;
}
ul.mobile-menu > li > ul > li > ul li a {
	padding-left: 10px;
}
ul li a.nav-button-highlight {
	position: relative;
}
ul li a.nav-button-highlight:before {
	content: '';
	position: absolute;
	top: 2px;
	right: 0;
	bottom: 2px;
	left: 0;
	border: 2px solid #FFF;
	border-radius: 5px;
	pointer-events: none;
	box-sizing: border-box;
}
ul li a.nav-button-highlight.child-nav:before {
	left: 0;
	right: 0;
}
ul.mobile-menu > li > ul.children a.nav-button-highlight {
	color: #fff;
	padding-left: 15px;
	padding-right: 5px;
}
ul.mobile-menu > li > ul.children a.nav-button-highlight.mobile-child {
	padding-left: 1px;
}
ul.mobile-menu > li > ul.children a.nav-button-highlight:before {
	top: 4px;
	bottom: 4px;
	right: 0;
	left: 10px;
}
ul.mobile-menu > li > ul.children a.nav-button-highlight.mobile-child:before {
	left: 0;
	right: 0;
}
ul li a.nav-button-highlight.color-nan-blue:before {
        border-color: #51ceff;
}

.elsewhere-button {
	position:fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9;
	display: none;
}
    /* Floating images (text wraps around) */
    .float-right {
        float: right;
        margin-left: 15px;
        margin-bottom: 10px;
    }

    /* Floating images on the left */
    .float-left {
        float: left;
        margin-right: 15px;
        margin-bottom: 10px;
    }


@media ( min-width: 950px ) {
	.mobile-header-search, .mobile-footer-search {
		display: none;
	}
	ul.product-menu li:hover {
		background: #000;
	}
	ul.product-menu li:hover .children {
		display:block;
	}
	.store-buttons .search-shortcut {
		display: none;
	}
}

@media ( max-width: 950px ) {
	.header {
		padding: 0;
	}
	.logo {
		padding: 10px;
		width: 170px;
	}
	.desktop-menu {
		display: none;
	}
	.desktop-search .searchform {
		display: none;
	}
	.header-links {
		display: none !important;
	}
	ul.product-menu {
		display: none;
		position:relative;
	}
	ul.mobile-menu {
		display:block;
		list-style: none;
		font-size: 14px;
		position:relative;
		z-index: 10;
		padding: 0 8px;
	}
        ul.mobile-menu li .expand {
                padding: 0 8px;
        }


    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        width: 100%;
        align-items: center;
        text-align: center;
	max-width: 400px;
    }

}


.header-info {
	float: right;
	padding: 10px 0 0;
	text-align: right;
}
.mobile-header-search {
	/*background: #000;*/
	padding: 0px 10px 10px;
	position: relative;
	z-index: 1;
}
footer {
	background-color: #1E324A;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0 auto 0 auto;
	width: 100%;
	text-align: center;
	padding: 20px;
        max-width: 1000px;

}


/* ✅ Footer Container */
.footer-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 10px;
    gap: 10px;
    font-size: 14px;
}

/* ✅ Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 200px;
    flex: 1;
}

/* ✅ Footer Text */
.footer-column h2,
.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 4px;
}

.footer-column ul li {
    margin-bottom: 4px;
}

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

/* ✅ Copyright Text */
.footer-copy {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 2px auto 0;
    font-size: 12px;
    color: #ccc;
    padding-top: 5px;
}

.button {
    display: inline-block;
    padding: 10px 15px;
    background: #61dafb;
    color: #2C4766;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

.button:hover {
    background: #4CA9E2;
}

/* ✅ Quick Links Section */
.quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}


.big-link-box {
    background: #1E324A;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    flex: 1 1 calc(30% - 20px); /* Forces 3-per-row layout */
    max-width: 400px; /* Ensures boxes don’t grow too large */
    min-width: 180px; /* Allows for responsiveness */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease-in-out;
}

/* ✅ Hover Effect */
.big-link-box:hover {
    transform: scale(1.05);
}

/* ✅ Link Box Headings */
.big-link-box h3 {
    color: #61dafb;
    margin-top: 5px;
    padding-top: 0;
}

/* ✅ Link Box Text */
.big-link-box p {
    font-size: 14px;
    color: #ccc;
    margin: 10px 0;
}

/* ✅ Individual Link Boxes */
.link-box {
    background: #1E324A;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    flex: 1 1 calc(30% - 20px); /* Forces 3-per-row layout */
    max-width: 230px; /* Ensures boxes don’t grow too large */
    min-width: 180px; /* Allows for responsiveness */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease-in-out;
}

/* ✅ Hover Effect */
.link-box:hover {
    transform: scale(1.05);
}

/* ✅ Link Box Headings */
.link-box h3 {
    color: #61dafb;
    margin-top: 5px;
    padding-top: 0;
}

/* ✅ Link Box Text */
.link-box p {
    font-size: 14px;
    color: #ccc;
    margin: 10px 0;
}






:root {
	--default-border-radius: 3px;
}


html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote,
pre, form, fieldset, table, th, td {
	letter-spacing: -0.02em;
	margin: 0;
	padding: 0;
}

body {
	color: white;
	font-size: 16px;
	line-height: 1.6;
	font-family: "Protipo Wide", "Helvetica Neue", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	background-color: #2C4766;
}


/* GEAR STUFF */

.gear-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.gear-item {
    display: flex;
    align-items: center; /* Aligns image and text vertically */
    width: 90%;
    max-width: 1200px;
    background: #1b2d45; /* Darker navy to match site */
    color: #ffffff; /* White text for contrast */
    padding: 0px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease-in-out;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;

}

.gear-item:hover {
    transform: scale(1.02);
}

/* Image on the Left */
.gear-image {
    flex: 1 1 20%;
    text-align: center;
    padding: 10px 10px 10px 10px;
}

.gear-image img {
    max-width: 80%;
    height: auto;
    border-radius: 6px;
    background-color: white; /* Ensures image is on a white background */
}

/* Text on the Right */
.gear-details {
    flex: 1 1 60%;
    padding: 10px 10px 10px 10px;
}

.gear-details h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    margin-top: 0px;
    color: #61dafb; /* Matches button color */
}

.gear-details ul {
    padding-left: 20px;
}

.gear-details ul li {
    list-style-type: disc;
    margin-bottom: 5px;
}

.gear-details p {
    margin-top: 10px;
    font-size: 1rem;
    color: #ffffff; /* Ensures readability */
}

/* Button - Match Site Style */
.gear-details .button {
    display: inline-block;
    margin-top: 10px;
    color: #2C4766; /* Dark text for contrast */
    background-color: #61dafb; /* Matches other buttons */
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.gear-details .button:hover {
    background-color: #4CA9E2;
}

.gear-specs{ list-style:none; margin:0 0 0.6rem 0; padding:0; color:#e7eef7; }
.gear-specs li{ margin:0.25rem 0; }

blockquote {
    background-color: #1E324A;
    border: 2px solid #ffffff;
    padding: 15px 20px;
    margin: 20px auto;
    font-style: italic;
    border-radius: 6px;
    text-align: center;
}



/* ✅ Table Styling */
table {
    overflow-x: auto;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    clear: both;
    border: 2px solid #fff; /* White outer border */
    border-collapse: collapse;
}

td { 
   border: 1px solid #ccc;
   text-align: left;
   padding: 4px 8px;
}
th {
   background-color: #1b2d45; /* Dark navy like rest of the site */
   color: #ffffff;            /* White text */
   font-weight: bold;
   text-align: center;
   padding: 10px;
   border-bottom: 2px solid #61dafb; /* Optional accent line */
}
tr.selected {
   background-color: #d4f7c5; /* bright green */
   color: #000000;             /* Force black text */
   font-weight: bold;
}
input, textarea, select {
   color: #ffffff;
   background-color: #1b2d45; /* Your site's dark navy */
   border: 1px solid #ccc;
}



/* H1: Main page title */
h1 {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;       /* tighten space before subtitle */
    border-bottom: 2px solid #61dafb;
    padding-bottom: 5px;
} 

/* H2: Smaller but still clear */
h2 {
    font-size: 1.7rem;
    font-weight: semi-bold;
    margin-top: 25px;
}


/* ✅ Title block container */
.page-title {
    text-align: center;
    border-bottom: 2px solid #61dafb;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* ✅ Main title */
.page-title h1 {
    font-size: 2.2rem;
    font-weight: bold;
    border: none;
    margin: 0;               /* removes default spacing */
}

/* ✅ Subtitle */
.page-title .subtitle {
    font-size: 1.2rem;
    font-weight: normal;
    margin: 5px 0 0 0;       /* tight above, no extra below */
    color: #cccccc;
    font-style: italic;      /* optional */
}


p {
	font-size: 16px;
	margin: 20px 0;
}

a {
    	color: #61dafb;
	text-decoration: none;
	font-weight: 500;
}

a img {
	border: 0;
}

input, textarea, button, .edit-button {
	font-family: "Protipo Wide", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: 400;
}

.edit-button {
	font-size: 1.1em;
	font-weight: 900;
	text-transform: uppercase;
}

input[type=text], input[type=number], input[type=email], input[type=password], input[type=submit], textarea, .input-text {
	border: 1px solid #000000;
	border-radius: 5px;
	color: #FFFFFF;
	margin: 0;
	padding: 10px;

	-webkit-font-smoothing: antialiased;
	-webkit-appearance: none;
}

input[type=number] {
	border-color: #666;
}

textarea {
	overflow: auto;
	resize: vertical;
}

input[type=submit], .submit, #submit {
	background: transparent;
	color: #8FFF00;
	cursor: pointer;
	font-weight: 900;
}

input[type=button] {
	font-weight: 900;

	-webkit-font-smoothing: antialiased;
	-webkit-appearance: none;
}

label {
	font-size: 14px;
}


/* select */

select {
	font-size: 16px;
	border: 1px solid #000;
	color: #ddd;
	padding: 0.5em;
	border-radius: 4px;
	width: 100%;
	height: 40px;
	font-family: "Protipo Wide", "Helvetica Neue", Helvetica, Arial, sans-serif;
	line-height: normal;
}

select option {
	color: #c6c6c6;
	font-family: "Protipo Wide", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

select option[disabled] {
	color: #979797;
}

/* /select */


button, input.button {
	border: 0;
	border-radius: 3px;
	color: #fff;
	cursor: pointer;
	font-size: 1.1em;
	font-weight: 900;
	margin: 0;
	padding: 15px 30px;
	text-transform: uppercase;
	/* width: auto !important; */
	-webkit-font-smoothing: antialiased;
	-webkit-appearance: none;
}

.edit-button {
	display: block;
	float: left;
	margin: 10px 0 0;
}

input.link-button, button.link-button, .link-button { /* For buttons that need to look like links */
	background: transparent;
	border: 0;
	color: #8FFF00;
	font-size: 1.1em;
	font-weight: 900;
	padding: 0;
	text-transform: uppercase;
}

pre {
	cursor: text;
}

address {
	font-style: normal;
}

.clearfix, .clear {
	clear: both;
}

.list-clearfix {
	clear: both;
	float: none !important;
	padding: 0 !important;
	width: 100% !important;
}

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


/* Content */

.container {
	margin: 0 auto;
	max-width: 1040px;
}

.content {
	padding: 10px 10px;
}


input[type=text], input[type=email], input[type=password], input[type=submit], textarea, .input-text, select {
	background: #111;
	border: 1px solid #666;
	color: #fff;
}

input[type=submit], .submit, #submit {
	background: transparent;
	color: #CEFF51;
	cursor: pointer;
	font-weight: 900;
}

/* Header */

.main-nav {
	background: #111;
	border-bottom: 0px solid #000;
	z-index: 1000;
}

	.main-nav a {
		color: #CEFF51;
	}

	.main-nav .current-menu-item a {
		color: #CEFF51;
	}

	.main-nav li ul {
		border-bottom: 1px solid #000;
		padding: 32px 0 0;
	}

	.main-nav li li {
		border: 1px solid #000;
		border-bottom: 0;
		border-top: 0;
	}

	.main-nav .current-menu-item li a {
		color: #fff;
	}


.main-nav .mobile-menu {
	border-top: 1px solid #000;
}

/* Content */

.content hr {
    border: 2px solid #61dafb;
    width: 50%;
    margin: 20px auto;
}

.content ol,
.content ul {
    padding-left: 20px;
}

.revision-history {
    font-size: 0.75rem;
    text-align: left;
    margin-top: 40px;
    padding-bottom: 20px;
    padding-left: 80px;
}


/* For FAQ Page */
.accordion {
   background: #1F3B5A;
   color: white;
   cursor: pointer;
   padding: 15px;
   width: 100%;
   border: none;
   text-align: left;
   outline: none;
   font-size: 14px;
   transition: background 0.3s ease;
   border-radius: 5px;
   margin-top: 5px;
}
.accordion:hover, .accordion.active {
   background: #264D73;
}
.panel {
   padding: 15px;
   display: none;
   background: #1B2C47;
   border-radius: 5px;
   margin-bottom: 5px;
}


/* For the Classes Page */

.class-box {
    background: #1E324A;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center; /* Center images vertically */
    gap: 15px;
    min-height: 220px; /* Ensure consistent height */
}

.class-box img {
    max-width: 35%;
    height: auto;
    border-radius: 5px;
    object-fit: contain; /* Prevents stretching */
    align-self: center; /* Centers the image within its flex container */
}


.class-text {
    flex: 1;
    padding-left: 10px;
    text-align: left; /* Prevents text from centering */
}


@media screen and (max-width: 640px) {
        .full-width {
                margin-left: -20px;
                margin-right: -20px;
        }

        .full-width.top {
                margin-top: -20px;
        }

        .full-width.bottom {
                margin-bottom: -20px;
        }
        ul.mobile-menu.front-page-menu-hidden {
                display: none;
        }
    img.float-right,
    img.float-left {
        float: none !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }


    /* ✅ Quick Links Section */
    .quick-links {
       display: flex;
       justify-content: center;
       flex-wrap: wrap;
       gap: 20px;
       padding: 20px 0;
       float: none !important;
       margin-left: auto !important;
       margin-right: auto !important;
    }


   .revision-history {
     padding-left: 20px;
   }

}

/* */
/* For Dive Store and Travel Cards */
.hub-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr; /* default mobile */
}

.hub-card {
  position: relative;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.hub-card__link {
  display: grid;
  grid-template-rows: auto auto 1fr;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.hub-card__media {
  margin: 0;
  aspect-ratio: 16 / 9;
  position: relative; /* anchor overlay */
  overflow: hidden;
}
.hub-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-card__title {
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 0.75rem 0.75rem 0 0.75rem;
  color: #fff;
}
.hub-card__summary {
  margin: 0.5rem 0.75rem 0.875rem 0.75rem;
  color: #334155;
}

/* subtle hover focus */
.hub-card:hover .hub-card__media img,
.hub-card:focus-within .hub-card__media img { transform: scale(1.03); }
.hub-card__media img { transition: transform 200ms ease; }


.card-badge-row {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  z-index: 2;
}

.card-badge {
  display: inline-block;
  background-color: rgba(0,90,120,0.9); /* fallback */
  color: #fff;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

.card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: rgba(0,0,0,0.4); /* subtle tint behind text */
  display: flex;
  justify-content: center;   /* centers horizontally */
  text-align: center;        /* ensures multiline titles are centered */
  color: #fff;
}

.card__overlay .hub-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.hub-card__details {
  font-size: 0.9rem;   /* smaller for address/phone/email */
  line-height: 1.3;
  display: block;      /* ensures spacing works */
  margin-top: 0.5rem;  /* space before details block */
}

@media (min-width: 600px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
}


.image-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.image-row img {
  width: 320px;
  height: 270px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  display: block;
}

/* For Landing Pages */
.landing-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1b2d45;
  color: #ffffff;
  border-radius: 8px;
  padding: 0;
  margin: 0;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;            /* enables absolute overlay positioning */
}

/* Image inside the card */
.landing-image {
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: 180px;                 /* adjust as needed */
  object-fit: cover;             /* crops without distortion */
}

/* Overlay band with scrim across middle of image */
.landing-details {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(90px);              /* half of image height for vertical center */
  transform: translateY(-50%);   /* centers the band vertically */
  text-align: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.45); /* scrim behind the title */
  backdrop-filter: saturate(120%) blur(1px); /* optional subtle polish */
}

.landing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 20px;
  box-sizing: border-box;
}

/* White content box below the image */
.landing-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #1b2d45;
  padding: 1px 16px;
  box-sizing: border-box;
}

.landing-link {
  flex: 0 0 320px;
  display: flex;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Ensure hover/focus states still apply */
.landing-link:focus .landing-item,
.landing-link:hover .landing-item {
  transform: translateY(-2px);
  box-shadow: 4px 6px 16px rgba(0,0,0,0.55);
}

/* Hover and focus affordance on larger pointers */
.landing-item:hover,
.landing-item:focus-within {
  transform: translateY(-2px);
  box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.55);
}

/* Headings inside the card */
.landing-details h2,
.landing-details h3 {
  margin: 0 0 10px 0;
  color: #fffff;
}

/* Headings inside the white content box */
.landing-body h2,
.landing-body h3 {
  margin: 0 0 10px 0;
  color: #1b2d45;
}

/* Lists and list items in the white box */
.landing-body ul {
  margin: 0;
  padding-left: 20px;
}
.landing-body li {
  list-style-type: disc;
  margin: 0 0 6px 0;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Paragraphs in the white box */
.landing-body p {
  margin-top: 10px;
  color: #1b2d45;
}

/* Links in the white box */
.landing-body a {
  color: #2c4766;
  text-decoration: none;
  border-bottom: 1px solid rgba(44, 71, 102, 0.35);
}
.landing-body a:hover,
.landing-body a:focus {
  color: #000000;
  border-bottom-color: rgba(0, 0, 0, 0.5);
}

/* ===== Responsive Breakpoints ===== */

/* Phones: single column stack */
@media (max-width: 680px) {
  .landing-item {
    transform: none;                    /* keep steady on touch */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.45);
  }
  .landing-details {
    padding: 14px;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .landing-details {
    padding: 12px;
  }
  .landing-details ul {
    padding-left: 18px;
  }
}

/* Mobile polish: keep text readable with side padding and proper alignment */
@media (max-width: 700px) {
  .gear-item {
    flex-direction: column;
    align-items: stretch;        /* let children fill the card width */
    padding-inline: 16px;        /* creates left/right “gutters” for text */
    text-align: initial;         /* do not center all text in the card */
    gap: 8px;                    /* small space between image and text blocks */
  }

  .gear-image {
    width: 100%;
    display: flex;
    justify-content: center;     /* center the image itself */
    padding: 12px 0 0 0;
  }

  .gear-image img {
    max-width: 90%;
    height: auto;
    display: block;
  }

  .gear-details {
    width: 100%;
    padding: 0 0 16px 0;         /* side padding now comes from .gear-item */
    text-align: left;
    min-width: 0;                /* prevents overflow with long words/links */
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
  }

  /* Ensure headings and paragraphs have sane vertical rhythm on mobile */
  .gear-details h2 { margin: 6px 0 8px; }
  .gear-details p  { margin: 0 0 10px; }
}

/* Ultra-small phones: keep things fluid */
@media (max-width: 360px) {
  .gear-image img { max-width: 100%; }
}

/* Base container */
.image-caption {
  display: inline-block;
  text-align: center;
  margin: 1em 0;
  max-width: 100%;
}

/* Center the image itself */
.image-caption img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/* Caption now aligns exactly to image width */
.image-caption .caption {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  margin-top: 0.3em;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  text-align: center;
  max-width: fit-content;   /* matches the image width */
  margin-left: auto;
  margin-right: auto;
}

/* Float variants for desktop */
.image-caption.right {
  float: right;
  margin: 0 0 1em 1em;
  max-width: 40%;
}

.image-caption.left {
  float: left;
  margin: 0 1em 1em 0;
  max-width: 40%;
}

/* Responsive: stack full-width on small screens */
@media (max-width: 768px) {
  .image-caption.right,
  .image-caption.left {
    float: none;
    display: block;
    max-width: 100%;
    margin: 1em auto;
  }
}

.callout {
    background-color: #1E324A;
    border: 2px solid #ffffff;
    padding: 15px 20px;
    margin: 20px auto;
    font-style: italic;
    border-radius: 6px;
}

.hero img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
}
.hero-overlay {
  position: relative;
  max-height: 300px;
  overflow: hidden;
}

.hero-overlay img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.at-a-glance-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(30, 50, 74, 0.85);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  max-width: 660px;
  font-size: 0.95rem;
}

.at-a-glance-overlay h2 {
  margin-top: 0;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.hero-overlay-intro {
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(30, 50, 74, 0.85); 
  color: #fff;
  padding: 0.5rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.hero-overlay-intro p {
  margin: 0;
  line-height: 1.3;
}

.hero-title-centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  text-align: center;
  font-size: clamp(1.15rem, 3.2vw + 0.55rem, 2.2rem);
  line-height: 1.2;
  z-index: 2;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
  margin: 0;
  border-bottom: 0;
  white-space: nowrap; 
  max-width: 95%; 
  overflow-wrap: normal;
}


/** MOBILE **/

@media (max-width: 680px) {

  /* Put the title below the image */
  .hero-title-centered {
    position: static;           /* leave normal flow */
    top: auto;
    left: auto;
    transform: none;
    background: transparent;    /* no scrim once below image */
    text-shadow: none;
    margin: 0.6rem 0 0.35rem;   /* space under image */
    padding: 0;                 /* let page rhythm control spacing */
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.25;
  }

  /* Deck paragraph below the title as a normal card */
  .at-a-glance-overlay {
    position: static;           /* leave normal flow */
    left: auto; right: auto; bottom: auto;
    margin: 0 0 0.75rem 0;      /* space under title */
    padding: 0.9rem 1rem;
    background: #1E324A;        /* solid card look */
    border-radius: 8px;
    max-width: none;
    font-size: 1rem;
    line-height: 1.45;
  }

  .at-a-glance-overlay h2 {
    margin: 0;
    font-size: 1.1rem;
    border: 0;                  /* cleaner on mobile */
    text-align: left;
  }

  /* Keep the hero figure tidy */
  .hero.hero-overlay {
    max-height: none;
    overflow: visible;          /* allow stacked content to show */
  }
  .hero-overlay img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .hero-overlay-intro {
    position: static;
    background: #1E324A;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    border-radius: 0;
  }

}

@media (max-width: 640px) {
  .hero,
  .hero.hero-overlay,
  .hero-overlay img {
    border-radius: 10px;
  }
  .hero { margin: 0 auto 0.75rem auto; }
}


/* Journal entry meta bar */
.journal-entry-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  margin: 0.75rem auto 1.5rem auto;
  text-align: center;
}

.journal-entry-meta a {
  text-decoration: none;
  font-weight: 500;
}

.journal-entry-meta a:hover {
  text-decoration: underline;
}

.journal-entry-meta .middot {
  opacity: 0.4;
  font-size: 1.1rem;
  line-height: 0;
  position: relative;
  top: -1px;
}

.journal-masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  text-align: center;
}

.journal-masthead a {
  text-decoration: none;
  font-weight: 600;
}
.journal-masthead a:hover { text-decoration: underline; }

.journal-masthead .journal-brand {
  font-weight: 700;
}

.journal-masthead .middot {
  opacity: 0.45;
  font-size: 1.1rem;
  line-height: 0;
  position: relative;
  top: -1px;
}

@media (min-width: 900px) {
  /* force a single line on larger screens */
  .journal-masthead { white-space: nowrap; }
}

@media (max-width: 600px) {
  .journal-masthead,
  .journal-entry-meta {
    font-size: 0.95rem;
    gap: 0.3rem;
    line-height: 1.35;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.journal-signoff {
  display: flex;
  justify-content: flex-start;  /* left-align horizontally */
  align-items: center;           /* vertical centering */
  gap: 0.5rem;                   /* space between dash and signature */
  margin-top: 2rem;
  margin-left: 0;                /* align with normal text flow */
}

.signature-dash {
  font-size: 2rem;
  line-height: 1;
}

.signature-image {
  display: inline-block;
  width: 100px;
  height: auto;
  opacity: 0.9;
  filter: grayscale(100%) contrast(110%);
}

@media (max-width: 600px) {
  .signature-image { width: 50px; }
  .signature-dash { font-size: 1.5rem; }
}

@media (max-width: 420px) {
  .full-width { margin-left: -14px; margin-right: -14px; }
  .full-width.top { margin-top: -14px; }
  .full-width.bottom { margin-bottom: -14px; }
}

.jump-links {
  border: 2px solid #61dafb;
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0 30px 0;
}

.jump-links ul {
  margin: 0;
  padding-left: 18px;
  column-count: 2;
  column-gap: 40px;
}
.jump-links li {
  break-inside: avoid;
}

@media (max-width: 768px) {
  .jump-links ul {
    column-count: 1;
  }
}

.sample-pages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem 0;
}

.sample-page {
  text-align: center;
}

.sample-page img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ddd;
}

.buy-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  background: #1E324A;
  border: 2px solid #61dafb;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 1.25rem auto 2rem auto;

  max-width: 780px;
  width: auto;
  box-sizing: border-box;

  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.buy-strip-title,
.buy-strip-sub {
  margin: 0;
}

.buy-strip-sub {
  color: #ccc;
  margin-top: 2px;
}

.buy-strip-right {
  flex-shrink: 0;
}

.buy-button {
  display: inline-block;
  padding: 10px 15px;
  background: #61dafb;
  color: #2C4766;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease-in-out;
}

.buy-button:hover {
  background: #4CA9E2;
}

@media (max-width: 700px) {
  .buy-strip {
    flex-direction: column;
    align-items: stretch;
    text-align: center;

    max-width: 450px;
    width: 100%;
  }

  .buy-strip-right {
    width: 100%;
  }

  .buy-strip-right .button {
    display: block;
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .sample-pages {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .sample-pages {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sample-pages {
    grid-template-columns: 1fr;
  }
}

