/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #F5F5DC;
  font-size: 1em;
  line-height: 1.4;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #ff8c00;
  text-shadow: none;
}

::selection {
  background: #ff8c00;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 2px;
  border: 0;
  border-top: 2px solid #ffffff;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/* Txt styles
   font-family: 'Mansalva', cursive;
   font-family: 'Markazi Text', serif;
   font-family: 'Montserrat', sans-serif;
*/

html, hr {
  background: #1a0d00;
}

a {
  color: #F5F5DC;
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
}
a:visited {
  color: #F5F5DC;
}
a:hover {
  color: #F5F5DC;
}
a:active {
  color: #F5F5DC;
}

hr {
  border: 0;
  margin: 5em 1em 5em 1em;
  height: 0.5em;
}

nav {
  width: 100%;
  position: relative;
  z-index: 100;
  margin: 0 auto;
  background-color: #ff8c00;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0,50 C25,75 75,25 100,50 L100,100 L0,100 Z' fill='%23ffc34d'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: auto 110%;
  background-position: bottom center;
  /* Title centred, menu centred below it. */
  display: block;
  text-align: center;
  padding: 0.4em 0 0 0;
  box-sizing: border-box;
}

/* ---- Sub-page navigation strip ---- */
.artnav {
  width: 100%;
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0.6em 0.5em 0.4em;
  box-sizing: border-box;
  border-bottom: 2px solid #ffffff;
}

/* Strip all button chrome, make them feel like links */
.artnav button {
  flex: 0 1 auto;
  min-width: 0;
  max-width: none;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0.45em 1em;
  cursor: pointer;
  transition: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Archive nav links, match h1 font (Markazi Text, 2em) */
.artnav button .toplinks,
.artnav button a.toplinks {
  font-family: 'Markazi Text', serif;
  font-size: 1.6em;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: #ffffff;
  vertical-align: baseline;
  transition: none;
}

/* No underline ever on artnav links */
.artnav button a:hover,
.artnav button a:focus,
.artnav button a:active {
  text-decoration: none;
}

/* Hover/focus/active, no border ever, just text brightens */
.artnav button:hover,
.artnav button:focus,
.artnav button:active,
.artnav button.active {
  background: transparent;
  border: none;
  outline: none;
}

.artnav button:hover .toplinks,
.artnav button:focus .toplinks,
.artnav button:hover a.toplinks,
.artnav button:focus a.toplinks {
  color: #ff8c00;
}

/* Active page, bright text only, zero border */
.artnav button.active .toplinks,
.artnav button.active a.toplinks {
  color: #ff8c00;
}

/* Eyebrow style, orange small caps. Used for tech-stack meta lines.
   Reusable via the .eyebrow class on <p>. */
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff8c00;
  margin-bottom: 1.6em;
}

.eyebrow a {
  color: #ff8c00;
  text-decoration: none;
  transition: color 0.2s ease;
}

.eyebrow a:hover,
.eyebrow a:focus {
  color: #ffffff;
}

/* Back-link paragraph, uses standard body p style */
.artnav p {
  width: 100%;
  text-align: center;
  margin: 0.5em 0 1.6em;
}

.artnav p a {
  color: #F5F5DC;
  text-decoration: underline;
  text-decoration-color: rgba(245, 245, 220, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.artnav p a:hover,
.artnav p a:focus {
  color: #ff8c00;
  text-decoration-color: #ff8c00;
}
/* ---- End sub-page navigation strip ---- */

main {
  width: 100%;
  margin: 0 auto;
  position: relative;
  min-height: 50em;
  background: #1a1a1a;
  padding-bottom: 4em;
  box-sizing: border-box;
}

footer {
  width: 100%;
  margin: 0 auto;
  position: relative;
  min-height: 50em;
  background: #1a0d00;
}

html p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
}

.section {
	clear: both;
	padding: 1em;
  margin: 0px;
}

h1, h2 {
  font-family: 'Markazi Text', serif;
  font-size: 2em;
  text-decoration: none;
  padding-left: 0;
  margin-top: 0.8em;
  margin-bottom: 0.6em;
}

body {
  padding: 1em;
  box-sizing: border-box;
  max-width: 100%;
}

p {
  padding-left: 0;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

nav a {
  list-style: none;
}

img.leftnav {
  height: 1.5em;
}

img.rightnav {
  height: 1.5em;
}

.toplinks {
  font-family: 'Mansalva', cursive;
  font-size: 2em;
  text-decoration: none;
  vertical-align: middle;
}

#pagename {
  font-family: 'Markazi Text', serif;
  /* Stay at 11em on desktop, scale down fluidly when the viewport
     can no longer fit the title, floor at 3.5em for mobile. */
  font-size: clamp(3.5em, 16vw, 11em);
  /* Tight line-box so glyphs hug the wave consistently across breakpoints. */
  line-height: 0.85;
  text-decoration: none;
  vertical-align: middle;
  margin: 0.2em 0;
  text-align: center;
  display: block;
  color: #1a1a1a;
}

#tagline {
  font-family: 'Markazi Text', serif;
  font-size: 3em;
  text-decoration: none;
  vertical-align: middle;
  text-align: center;
  padding: 0.5em 1em;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}

/* Tagline soft-break, only kicks in on narrow viewports so the natural
   single-line layout is preserved on wider screens. */
#tagline .tagline-break { display: none; }
@media only screen and (max-width: 700px) {
  #tagline .tagline-break { display: inline; }
  #tagline .tagline-break::before { content: "\A"; white-space: pre; }
}

.intlink {
  font-family: 'Markazi Text', serif;
  font-size: 2em;
  text-decoration: underline;
}

#taglineimg {
  width: 100%;
}

.taglinecontainer {
  position: relative;
  text-align: center;
  background: transparent;
}

 /* Buttons */
 button, input[type=submit] {
  border: none;
  font-family: 'Mansalva', cursive;
  font-size: 1em;
  cursor: pointer;
  margin: 0.5em;
  background-color: #1a1a1a;
  border: 2px solid #F5F5DC;
  color: #F5F5DC;
}

/* Menu button, transparent, blends into orange wave nav.
   Box geometry mirrors .dropdown-content a so the orange hover/open box
   is identical width and height to the child item hover box. */
.dropbtn {
  font-family: 'Mansalva', cursive;
  font-size: 1em;
  background: transparent;
  color: #1a1a1a;
  border: none;
  border-radius: 0;
  padding: 0.5em;
  margin: 0;
  height: auto;
  line-height: 1.5em;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(255, 195, 77, 0.9), 0 0 18px rgba(255, 140, 0, 0.6);
}

input[type=text], input[type=email] {
  border: none;
  font-family: 'Mansalva', cursive;
  font-size: 1em;
  font-weight: normal;
  height: 1.5em;
  line-height: 1.5em;
  cursor: text;
  margin: 0.5em;
  color: #1a1a1a;
  outline: none;
  padding: 0 0.4em;
  text-align: left;
  background: #ffffff;
  box-sizing: border-box;
}


/* Placeholder, dark grey on default white field */
input[type=email]::placeholder,
input[type=text]::placeholder {
  font-family: 'Mansalva', cursive;
  font-weight: normal;
  color: #666666;
}

/* Hover, placeholder flips dark to match nav child item hover text */
input[type=email]:hover::placeholder,
input[type=text]:hover::placeholder {
  color: #1a1a1a;
}

input[type=email]:focus::placeholder,
input[type=email]:active::placeholder {
  color: transparent;
}

/* Email input hover (orange) */
input[type=email]:hover,
input[type=text]:hover {
  background: #ff8c00 !important;
  border: none !important;
  outline: none !important;
  color: #1a1a1a !important;
  animation: none !important;
}

/* Email input focus/active (white bg, black text) */
input[type=email]:focus,
input[type=email]:active,
input[type=text]:focus,
input[type=text]:active {
  background: white !important;
  border: none !important;
  outline: none !important;
  color: #1a1a1a !important;
  animation: none !important;
}

/* Buttons on hover & focus */
button:hover, button:focus, input[type=text]:hover, input[type=text]:focus, input[type=submit]:hover, input[type=submit]:focus {
  background-color: #ff8c00;
  border: 2px solid #F5F5DC;
  color: black;
}

/* Menu button hover & open, match child-item hover exactly:
   solid orange bg, black text/icon, no glow, normal weight */
.dropbtn:hover,
.dropbtn:focus,
.dropbtn:active,
.dropdown:has(.dropdown-content.show) .dropbtn,
.dropdown:has(.dropdown-content.show) .dropbtn:hover,
.dropdown:has(.dropdown-content.show) .dropbtn:focus,
.dropdown:has(.dropdown-content.show) .dropbtn:active {
  background-color: #ff8c00;
  color: black;
  text-shadow: none;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Removed conflicting input[type=text/email] hover states */

.active {
  background-color: #ff8c00;
}

#myDropdown {
  border: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1a1a1a;
  width: 100%;
  min-width: 0;
  z-index: 200;
  left: 0 !important;
  right: 0 !important;
  text-align: center !important;
  transform: none !important;
  top: 100%;
}

/* Links inside the dropdown */
.dropdown-content a {
  font-family: 'Mansalva', cursive;
  font-size: 1em;
  color: #F5F5DC;
  padding: 0.5em;
  margin: 0;
  line-height: 1.5em;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ff8c00;
  color: black;
}

/* Soft fade below the open dropdown so content beneath blends into black
   instead of cutting hard against the menu's bottom edge. */
.dropdown-content.show::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 2.5em;
  background: linear-gradient(to bottom, #1a1a1a, rgba(26, 26, 26, 0));
  pointer-events: none;
  z-index: 201;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

/* BG vid */

#myVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
}

/* Main */

iframe {
  border: none;
  background-color: black;
}

/* 12-Column CSS Grid */
.grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1em;
  width: 100%;
  padding: 1em;
  margin: 0px;
  clear: both;
  box-sizing: border-box;
}

[class^="grid-col-"] {
  min-width: 0; /* Prevents overflow */
}

.grid-col-12 { grid-column: span 12; }
.grid-col-9  { grid-column: span 9; }
.grid-col-8  { grid-column: span 8; }
.grid-col-6  { grid-column: span 6; }
.grid-col-4  { grid-column: span 4; }
.grid-col-3  { grid-column: span 3; }

[class^="grid-col-"] img {
  width: 100%;
  padding: 0;
  height: auto;
  display: block;
  box-sizing: border-box;
}


/* Mailing list */

 /* Style the form element with a border around it */

/* Add some padding and a grey background color to containers */
form .mailinglist {
  padding: 1em;
}

.iframevid169 {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 1em 0;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

.iframevid43 {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 1em 0;
  padding-top: 75%; /* 4:3 Aspect Ratio */
}

.iframecal {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 1em 0;
  padding-top: 88%; /* Weird calendar Aspect Ratio */
}

.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

/* App screenshots smart grid */
.app-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1em;
  margin: 0;
  padding: 1em;
  clear: both;
  box-sizing: border-box;
}
.app-screenshots-grid img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #333;
  box-sizing: border-box;
}

/*  Media */

@media only screen and (max-width: 1500px) {
  .grid-col-4, .grid-col-8, .grid-col-3, .grid-col-9 { 
    grid-column: span 6; 
  }

  img.rightnav, img.leftnav {
    display: none;
  }
}

@media only screen and (max-width: 1200px) {
  nav {
    padding-bottom: 0;
  }
}

/*  Grid go full with 900px */

@media only screen and (max-width: 900px) {
  /* Single-column layout below 900px, drop the 12-track gaps so the
     container can never overflow narrow viewports. */
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1em;
  }
  [class^="grid-col-"] {
    grid-column: span 1;
  }

  /* Drop the desktop-sized footer void on narrow screens */
  footer {
    min-height: 0;
  }

  /* Mailing list box flush-left at narrow widths so it lines up with
     the rest of the footer column content. */
  .mailing-list-box {
    display: block;
    width: 100%;
  }
  #tagline {
    font-size: 2em;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
  }

}

@media only screen and (max-width: 480px) {
  #tagline {
    font-size: 1.5em;
  }
}

@media only screen and (max-width: 390px) {
  #tagline {
    font-size: 1.75em;
  }
  .toplinks {
    font-size: 1.5em;
  }
  .artnav button .toplinks,
  .artnav button a.toplinks {
    font-size: 1.3em;
  }
}

@media only screen and (max-width: 700px) {
  body {
    padding: 0.25em;
  }
  
  .app-screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stack all grid columns on mobile */
  .grid-container {
    gap: 2em;
  }

  /* Touch-friendly nav: larger tap targets */
  nav a, .toplinks {
    display: inline-block;
    padding: 0.5em 0.3em;
    min-height: 44px;
    line-height: 44px;
  }
  /* Menu button + dropdown items, slightly smaller on mobile */
  .toplinks {
    font-size: 1.8em;
  }
  /* Artnav links, keep Markazi Text, don't scale down for mobile */
  .artnav button .toplinks,
  .artnav button a.toplinks {
    min-height: 0;
    line-height: normal;
    padding: 0;
  }

  /* Touch-friendly buttons */
  button, input[type=submit] {
    min-height: 44px;
    padding: 0.5em 1em;
  }

  /* Keep artnav buttons compact on mobile, undo the touch-target bulk */
  .artnav button {
    min-height: 0;
    padding: 0.5em 0.75em;
  }

  /* Menu button, full width on mobile */
  .dropdown {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
  }

  .dropbtn {
    min-height: 0;
    line-height: 1.5em;
    padding: 0.5em;
  }
  nav .section {
    padding-top: 0;
    padding-bottom: 0;
  }
  #pagename {
    margin-top: 0;
    margin-bottom: -0.2em;
  }
  .dropbtn {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
  }

  /* Flyout, full width on mobile */
  .dropdown-content {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }


  /* Make email input full width on mobile */
  input[type=email], input[type=text] {
    width: 100%;
    box-sizing: border-box;
  }

  /* Responsive iframes */
  iframe {
    max-width: 100%;
  }


  
  h1, h2 {
    font-size: 1.5em;
  }
  
  html p {
    font-size: 0.85em;
  }
  
  /* Pull the yellow wave down slightly behind the title so the logo
     slices through the text more. */
  nav {
    background-size: auto 110%;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

/* ─── Lightbox ─────────────────────────────────────────────────── */

/* Art images become clickable */
.lightbox-trigger {
  cursor: zoom-in;
}

/* Scroll lock when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}

/* Overlay */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 8, 5, 0.94);
  align-items: center;
  justify-content: center;
}
#lightbox-overlay.active {
  display: flex;
}

/* Image */
#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  opacity: 1;
  transition: opacity 0.15s ease;
  box-shadow: 0 8px 48px rgba(0,0,0,0.7);
}

/* Close button */
#lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #F5F5DC;
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1em 0.3em;
  min-height: 0;
  transition: color 0.15s ease;
  z-index: 10000;
}
#lightbox-close:hover {
  color: #ff8c00;
  background: transparent;
  border: none;
}

/* Prev / Next arrows */
#lightbox-prev,
#lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #F5F5DC;
  font-size: 4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1em 0.4em;
  min-height: 0;
  transition: color 0.15s ease;
  z-index: 10000;
  user-select: none;
}
#lightbox-prev { left: 1rem; }
#lightbox-next { right: 1rem; }
#lightbox-prev:hover,
#lightbox-next:hover {
  color: #ff8c00;
  background: transparent;
  border: none;
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #000 !important;
    color: #fff !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* About section */
.about-photo {
  max-width: 150px;
  display: block;
  margin: 1.5em 0 1em 0;
}

.subscribe-container {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  align-items: flex-start;
}

/* Stack footer columns earlier than the global 700px breakpoint so the
   mailing-list box gets enough room before the submit button overflows. */
@media only screen and (max-width: 1400px) and (min-width: 901px) {
  footer .grid-container > [class^="grid-col-"] {
    grid-column: span 12;
  }
}

/* Mailing list callout container, lifts the newsletter CTA off the footer bg */
.mailing-list-box {
  background: #1a1a1a;
  padding: 1.25em 1.5em;
  margin-top: 2em;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
}

/* Email field + send icon wrapper.
   font-size: 2em mirrors `.toplinks` on the nav .dropdown, children stay at 1em
   and render at the same effective size as the nav popup child items. */
.email-field-wrapper {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  overflow: hidden;
  font-size: 2em;
  max-width: 100%;
}

.email-field-wrapper input[type=email] {
  flex: 1 1 0;
  min-width: 0;
  margin-left: 0;
}

@media only screen and (max-width: 480px) {
  .email-field-wrapper {
    font-size: 1.3em;
  }
}

/* Submit button, mirrors .dropdown-content a exactly */
.email-send-btn {
  font-family: 'Mansalva', cursive;
  font-size: 1em;
  font-weight: normal;
  color: #F5F5DC;
  height: 1.5em;
  min-height: 0;
  line-height: 1.5em;
  margin: 0.5em;
  padding: 0 0.6em;
  background: transparent;
  color: #F5F5DC;
  border: none;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.email-send-btn:hover,
.email-send-btn:focus,
.email-send-btn:active {
  background: #ff8c00;
  color: #1a1a1a;
  border: none;
  outline: none;
}

/* Mobile override, must come AFTER the desktop .email-field-wrapper rule
   above so it actually wins. Mirrors `.toplinks` 1.5em scaling used by
   the mobile nav popup, so children's 1em renders at the same size as
   the mobile dropdown items. */
@media only screen and (max-width: 700px) {
  .email-field-wrapper {
    display: flex;
    width: 100%;
    font-size: 1.5em;
  }
}
