/* ==========================================================================
   PDS Planetary Atmospheres Node: shared site stylesheet
   Used by every page built from the main.dwt template, so any selector that
   legacy pages reference is kept (see "Legacy page helpers" below).
   ========================================================================== */

:root {
  --nasa-blue: #0b3d91;
  --blue: #0b5394;
  --blue-dark: #082c5c;
  --accent: #d96c00;
  --accent-dark: #b35900;
  --ink: #1d2433;
  --ink-soft: #4a5468;
  --muted: #6b7486;
  --line: #dde2ea;
  --surface: #ffffff;
  --surface-alt: #f4f6f9;
  --link: #0b5394;
  --link-hover: #d96c00;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */

* {
  margin: 0;
  padding: 0;
}

/* border-box only where the new layout needs it; legacy pages size
   fixed-width boxes with content-box math */
#header, #header *, #menu *, #submenu *, #footer, #footer *,
.sidebarSection *, .sidebarSection2 *,
.callouts *, .targets *, .news-grid *, .card, .notice, .target-nav * {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: .875rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
}

input, select, textarea, button {
  font: inherit;
}

pre, code, kbd, tt {
  font-family: var(--mono);
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--link-hover);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--blue-dark);
}

h1 {
  margin: 0 0 .5em;
  font-size: 1.75rem;
  font-weight: 700;
}

h2 {
  margin: 1em 0 .5em;
  font-size: 1.15rem;
}

h3 {
  margin: 1em 0 .4em;
  font-size: 1rem;
}

p {
  margin: .6em 0 1.2em;
  max-width: 45em;
}

li {
  max-width: 45em;
}

ul {
  padding-left: 1em;
}

ol {
  padding-left: 1.5em;
}

hr {
  margin: 1em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

th, td {
  text-align: left;
  vertical-align: top;
  padding-left: .5em;
  padding-right: .5em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Utilities ---------- */

.hidden { display: none; }
.invisible { visibility: hidden; }
.clear { clear: both; }
.red { color: red; }
.textright { float: right; }
.bullet { list-style-type: circle; }
li.none { list-style-type: none; }

.nonvisual {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Shown when keyboard users tab onto the "skip to" links */
.nonvisual:focus-within,
a.nonvisual:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  z-index: 1000;
  padding: .5rem .75rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* ---------- Header ---------- */

#header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  padding: .75rem clamp(1rem, 3vw, 2rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

#header > .clear {
  display: none;
}

#logo {
  flex: 1 1 auto;
  margin: 0;
  max-width: none;
}

#logo a {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--blue-dark);
  background: transparent;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
}

#logo img {
  vertical-align: middle;
  width: 60px;
  height: auto;
}

#search {
  order: 2;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
}

#search p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin: 0;
}

#search label {
  font-size: .8rem;
  font-weight: 600;
}

#search br {
  display: none;
}

#search input.text {
  width: 16rem;
  max-width: 60vw;
  margin: 0;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-alt);
}

#search input.text:focus {
  background: var(--surface);
  border-color: var(--blue);
  outline: none;
}

#search input.submit {
  padding: .45rem 1rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 600;
  cursor: pointer;
}

#search input.submit:hover {
  background: var(--accent);
}

#search select {
  margin: 2px 0;
}

#nasaLinks {
  order: 3;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .8rem;
}

#nasaLinks a {
  color: var(--muted);
  background: transparent;
  text-decoration: none;
}

#nasaLinks a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Some mission themes add generated bullets to every li; keep them out of the chrome */
#header li::before, #menu li::before, #submenu li::before,
#header li::after, #menu li::after, #submenu li::after {
  content: none;
}

/* Mission pages show the PDS planets logo at the right of the header */
#header .header-extra {
  order: 4;
  margin: 0;
  max-width: none;
  line-height: 0;
}

#header .header-extra img {
  width: auto;
  height: 44px;
}

/* ---------- Main menu ---------- */

#menu {
  position: relative;
  margin: 0;
  padding: 0 clamp(.5rem, 2vw, 1.25rem);
  color: #fff;
  background: var(--blue-dark);
}

#menu > .clear {
  display: none;
}

#menu ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

#menu li {
  max-width: none;
  border: 0;
}

#menu a {
  display: block;
  padding: .75rem 1rem;
  color: #fff;
  background: transparent;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}

#menu a:hover {
  background: rgba(255, 255, 255, .08);
  border-bottom-color: rgba(255, 255, 255, .5);
}

body.menu_home #home a,
body.menu_about #about a,
body.menu_data #data a,
body.menu_education #education a,
body.menu_external #external a,
body.menu_contact #contact a,
body.menu_site #site a,
#menu li.selected a {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-bottom-color: var(--accent);
}

/* ---------- Sub menu ---------- */

#submenu {
  position: relative;
  min-height: 4px;
  padding: 0 clamp(.5rem, 2vw, 1.25rem);
  color: #fff;
  background: var(--accent);
}

/* Legacy pages nest a second #submenu inside the first */
#submenu #submenu {
  padding: 0;
  min-height: 0;
  background: transparent;
}

#submenu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: .35rem .5rem;
  list-style: none;
}

#submenu li {
  max-width: none;
  padding: .15rem 0;
}

body.menu_item_about_about #about_about,
body.menu_item_about_faq #about_faq,
body.menu_item_about_organization #about_organization,
body.menu_item_about_phone_book #about_phone_book,
body.menu_item_contact_contact #contact_contact,
body.menu_item_contact_feedback #contact_feedback,
body.menu_item_education_education #education_education,
body.menu_item_data_archiving #data_archiving,
body.menu_item_data_asteroids #data_asteroids,
body.menu_item_data_catalog #data_catalog,
body.menu_item_data_data_search #data_data_search,
body.menu_item_data_data_set_status #data_data_set_status,
body.menu_item_data_data_structure #data_data_structure,
body.menu_item_data_how_to_search #data_how_to_search,
body.menu_item_data_index #data_index,
body.menu_item_data_missions #data_missions,
body.menu_item_data_search_results #data_search_results,
body.menu_item_data_targets #data_targets,
body.menu_item_data_text_search #data_text_search,
body.menu_item_external_external_sites #external_external_sites,
body.menu_item_home_ads #home_ads,
body.menu_item_home_nrs #home_nrs,
body.menu_item_home_weather #home_weather,
body.menu_item_site_site #site,
body.menu_item_tools_archive_lifecycle #tools_archive_lifecycle,
body.menu_item_tools_archiving_process #tools_archiving_process,
body.menu_item_tools_cost_analysis_tool #tools_cost_analysis_tool,
body.menu_item_tools_data_dictionary_lookup #tools_data_dictionary_lookup,
body.menu_item_tools_finding_data #tools_finding_data,
body.menu_item_tools_peer_reviews #tools_peer_reviews,
body.menu_item_tools_proposing #tools_proposing,
body.menu_item_tools_reference_lookup #tools_reference_lookup,
body.menu_item_tools_standards_reference #tools_standards_reference,
body.menu_item_tools_tools_for_preparers #tools_tools_for_preparers,
body.menu_item_tools_tools_for_proposers #tools_tools_for_proposers,
body.menu_item_tools_tools_for_researchers #tools_tools_for_researchers,
#submenu li.selected {
  font-weight: 700;
  text-decoration: underline;
}

#submenu a {
  color: #fff;
  background: transparent;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
}

#submenu a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Layout: sidebar + content ---------- */

#sidebar {
  display: none;
  clear: both;
  float: left;
  /* Content starts ~15rem in, matching the old layout: many mission pages
     position images at fixed pixel offsets from the content's left edge. */
  width: 13.25rem;
  padding: 1.5rem 0 1rem 1rem;
}

body.sidebar #sidebar {
  display: block;
}

#content,
#othercontent,
#leftothercontenttext {
  margin: 0 clamp(1rem, 3vw, 2rem);
  padding-top: 1.5rem;
}

body.sidebar #content,
body.sidebar #othercontent {
  margin-left: 15.5rem;
}

/* ---------- Sidebar cards ---------- */

.sidebarSection,
.sidebarSection2 {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Empty placeholder sections left behind by the template */
.sidebarSection:empty,
.sidebarSection2:empty {
  display: none;
}

.sidebarSection h2,
.sidebarSection2 h2 {
  margin: 0;
  padding: .6rem .9rem;
  color: #fff;
  background: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sidebarSection2 h2 {
  background: var(--accent);
}

.sidebarSection h3,
.sidebarSection2 h3 {
  margin: 0;
  padding: .6em .9rem .1em;
  color: var(--ink);
  background: var(--surface);
  font-size: .9rem;
}

.sidebarSection ul,
.sidebarSection2 ul {
  margin: 0;
  padding: .4rem 0;
  list-style: none;
}

.sidebarSection li,
.sidebarSection2 li {
  padding: .3rem .9rem;
  font-size: .85rem;
  line-height: 1.4;
}

.sidebarSection li + li,
.sidebarSection2 li + li {
  border-top: 1px solid var(--surface-alt);
}

.sidebarSection hr {
  margin: .4rem 0 0;
  border: 0;
}

.sidebar a {
  color: var(--link);
  text-decoration: none;
}

.sidebar a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.sidebarSection ul.lpsc,
.lpsc {
  margin: 5px 0 0 5px;
}

.sidebarSection ul.lpsc {
  margin-top: 1em;
}

.sidebarLink {
  padding: .2em .5em .8em 1.2em;
  background: transparent url(../images/plus.gif) no-repeat .5em .5em;
  font-size: 90%;
}

/* Small arrow-bullet lists used inside sidebars and content */
li.list,
.sidebarSection li.list,
.sidebarSection2 li.list,
.sidebarSection li.sublist,
.sidebarSection li.subsublist {
  list-style-position: inside;
  list-style-type: circle;
  list-style-image: url(../images/arrow_vol.gif);
  margin: 0;
  line-height: 1.2;
}

li.list { font-size: 50%; margin: 10px 1px 0 5px; }
.sidebarSection li.list,
.sidebarSection2 li.list { font-size: 70%; padding: 4px 5px .8em; }
.sidebarSection li.sublist { font-size: 70%; padding: 2px 0 .3em 30px; }
.sidebarSection li.subsublist { font-size: 70%; padding: 2px 0 .3em 40px; }

/* ---------- Footer ---------- */

#footer {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 3rem 0 0;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  font-size: .8rem;
  line-height: 1.5;
  /* !important overrides the inline grey background on legacy pages */
  color: rgba(255, 255, 255, .85) !important;
  background: var(--blue-dark) !important;
}

#footer a {
  color: #fff;
}

#footer a:hover {
  color: #ffc58a;
}

#footer p {
  margin: 0;
  padding: 0;
  max-width: none;
}

#footer img {
  padding: 0;
  vertical-align: middle;
}

#footer .left,
#footer .right {
  float: none;
}

#footer p.right {
  margin-left: auto;
  text-align: right;
}

#footer > div[style*="clear"] {
  display: none;
}

/* ---------- Content helpers ---------- */

.blockquote {
  margin-left: 25px;
  margin-right: 25px;
}

.linkList a {
  display: block;
}

.search_form a {
  color: var(--link);
  text-decoration: underline;
}

.refinements a {
  font-size: 90%;
  text-decoration: underline;
}

.vertMenu {
  float: left;
  width: 14em;
  margin: 1em;
}

.vertMenuColumn1 { margin-left: 0; }
.vertMenuColumn2 { margin-right: 0; }

.vertMenu h2 {
  margin: 1em .5em .5em 0;
  font-size: 120%;
}

.vertMenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vertMenu li {
  margin-top: 1em;
  line-height: 1em;
}

table.description th,
table.description td {
  width: 37em;
  border: none;
  padding: .7em 0 .7em 1em;
}

table.description th.term,
table.description td.term {
  width: 12em;
  padding: .7em 1em .7em 0;
}

th.width1, td.width1 { width: 11em; padding: .7em 1em; }
th.width2, td.width2 { width: 24em; padding: .7em 1em; }

table.nameValue th { padding-right: 2em; }
table.nameValue th,
table.nameValue td { padding-bottom: .5em; }

#normaltable {
  text-align: left;
  padding-left: 0;
  padding-right: 0;
}

/* Candy-striped tables and results */
.even, .even td { background: #e6eef2; }

/* Definition list */
dl.definitions dt { width: 20%; float: left; font-weight: bold; }
dl.definitions dd { margin-left: 21%; }
dl.definitions dt,
dl.definitions dd { padding-bottom: 1.4em; }

/* Popup windows */
.popup .closeLink { text-align: right; margin-right: 2em; }
.popup * { clear: both; }
.popup pre {
  float: left;
  margin: 0 0 1em;
  padding: .5em;
  border: 1px solid gray;
  font-size: 120%;
}
.popup table { margin: 0 0 1em; }
.popup th, .popup td { padding: .2em .5em; }

/* Embedded tabbed panes */
ul.tabs {
  margin: 0;
  padding: 8px 0 0 1em;
  background: transparent url(../images/gray-30-1x1.gif) repeat-x left bottom;
  vertical-align: bottom;
  white-space: nowrap;
}

ul.tabs li {
  display: inline;
  position: relative;
  bottom: 4px;
  margin: 0 .2em;
  padding: 3px 0;
  list-style-type: none;
  background: #e5e5e5;
  border: 1px solid;
  border-bottom: none;
  border-color: #f2f2f2 #c2c2c2 black #f2f2f2;
}

ul.tabs li.selected {
  padding: 3px .5em 4px;
  background: white;
  border-color: #c2c2c2 #4d4d4d black #c2c2c2;
}

ul.tabs a { padding: 0 .5em; text-decoration: none; color: black; }
ul.tabs a:hover { color: blue; }

/* Search results */
.remove_box {
  vertical-align: 1px;
  border: 1px solid #c0c0c0;
  background: #f0f0f0;
  color: #f00;
  padding: 0 3px 2px;
  text-decoration: none;
  font-size: 11px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.results { list-style: none; margin: 0; padding: 0; }
.result { padding: .25em 0; }
.resultgroup { clear: both; padding-top: 1em; }
.resultgroup .result { padding-left: .5em; }

/* ==========================================================================
   Legacy page helpers
   Page-specific ids/classes referenced from mission and archive pages.
   ========================================================================== */

a.ipstickynav:before { color: var(--accent); content: "> "; }

#green { color: green; }

.marspic { position: absolute; left: 100px; }
.floatright { position: absolute; left: 600px; }
.imgfloatright { position: absolute; left: 1000px; }

#casslogo { padding: 20px 20px 0; }
#mars_logo { padding: 0; }
#cassinipicrightfloat { float: right; width: 46%; text-align: left; }
#huygenspic { position: absolute; float: left; width: 300px; margin-left: 500px; text-align: left; }
#phxpic { float: right; width: 49%; padding-left: 50px; text-align: left; }
#phxpic2 { float: right; width: 70%; margin-left: 30px; }
#pdslogo { position: absolute; top: 5px; left: 0; }

#limittext, #limittext2, #limittext3 { float: left; margin: 0 0 0 15px; }
#limittext  { width: 400px; }
#limittext2 { width: 300px; }
#limittext3 { width: 200px; }
#limittext4 { width: 50%; font-style: italic; }
#limittext5 { float: left; margin-top: 0; width: 870px; max-width: 100%; }
#limittext6 { margin-left: 150px; width: 500px; }
#longtext   { width: 800px; max-width: 100%; }
#longtext_2 { width: 80%; }

#smalltext, #smalltext2 { margin-left: 15px; font-size: 8pt; }
#smalltext  { max-width: 50%; }
#smalltext2 { max-width: 20%; }
#smalltext3 { margin-left: 15px; max-width: 30%; padding-right: 30px; }

#textalignleftlim {
  margin: 0 0 0 5%;
  max-width: 50%;
  line-height: 1.5em;
  font-weight: normal;
}

#subheader { font-size: 12pt; font-weight: bold; }

#indenttext, #indenttextother { margin-left: 20px; }
#indenttext2 { margin-left: 20px; padding-left: 1em; text-indent: -1em; }
#longindenttext { margin-left: 40px; }

#wrapper { position: absolute; margin: 0 0 0 50px; }

#banheader {
  position: relative;
  height: 1.2em;
  margin-bottom: 2px;
  color: white;
  background: #666;
}

#banheader2 {
  position: relative;
  height: 1em;
  color: white;
  background: var(--accent);
}

#banholder {
  position: absolute;
  top: 65px;
  z-index: -1;
  width: 1000px;
  margin: 0;
  padding: 0;
}

#banner, #banner2 {
  margin: 0;
  font-family: Impact, Charcoal, Tahoma, Geneva, "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
}
#banner  { line-height: 2.5em; background: #006699; }
#banner2 { line-height: 1em; background: var(--accent); }

#bannertext, #bannertext2 {
  margin: 0 0 0 260px;
  padding: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17.5pt;
}
#bannertext  { color: white; }
#bannertext2 { color: black; }

#leftothercontent {
  margin: 16px 290px 0 10px;
  border: 30px solid #203351;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

/* Huygens tab sheets */
#header1 {
  float: left;
  width: 100%;
  font-size: 93%;
  line-height: normal;
  background: #dae0d2 url(../images/bg.gif) repeat-x 50% bottom;
}
#header1 ul { margin: 0; padding: 10px 0 0; list-style-type: none; }
#header1 li { float: left; margin: 0; padding: 0 0 0 5px; background: url(../images/left.gif) no-repeat left top; }
#header1 a {
  display: block;
  padding: 5px 10px 4px 6px;
  color: rgb(39, 84, 175);
  font-weight: bold;
  text-decoration: none;
  background: url(../images/right.gif) no-repeat right top;
}
#header1 a:hover { color: #333; }
#header1 #current { background-image: url(../images/left_on.gif); }
#header1 #current a { padding-bottom: 5px; color: #333; background-image: url(../images/right_on.gif); }

/* Data holdings tables */
.holdingsGray { border-width: 1px; background-color: #ccc; }
.holdingsRow  { height: 40px; background-color: #ffffd7; }
.style20 { font-size: 8pt; }
.style26 { border: 1px solid green; font-size: 12px; background-color: #fff; }
.style30 {
  height: 28px;
  border: none;
  font-weight: bold;
  font-size: 8pt;
  text-align: center;
  vertical-align: top;
  background-color: #ffcc99;
}
.style31 { padding: 0 12px; background-color: #fff; }
.style32 { border-width: 1px; font-size: 8pt; background-color: #fff; }
.style33 { height: 15px; border-width: 1px; background-color: #efefef; }
.style34 { height: 40px; background-color: #ffffcc; }
.style35 { height: 29px; background-color: #ffffcc; }
.style36 {
  height: 28px;
  margin: 2px 0;
  border: none;
  color: black;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-align: center;
  vertical-align: top;
  background-color: #ffcc99;
}
.style38, .style41 {
  height: 30px;
  border: none;
  color: black;
  font-size: 8pt;
  font-weight: normal;
}
.style38 { margin: 5px 0; font-family: Arial, sans-serif; background-color: #ffffcc; }
.style41 { margin: 2px 0; background-color: #dedede; }
.style38 a, .style41 a { font-size: 8pt; font-weight: bold; font-family: Arial, sans-serif; }
.style40 { border-width: 1px; background-color: #ffffcc; }
.style44 { border-width: 1px; background-color: #efefef; }
.style45 { height: 40px; background-color: #efefef; }

/* ==========================================================================
   Components for the rebuilt pages (home and section landing pages)
   ========================================================================== */

.page-intro {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 52rem;
}

.page-intro img {
  flex: none;
  width: 74px;
  border-radius: var(--radius);
}

.page-intro p {
  margin-top: 0;
}

.lede {
  font-size: 1rem;
  color: var(--ink-soft);
}

.callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  max-width: 52rem;
}

.callout {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: none;
}

.callout:hover {
  border-color: var(--accent);
  background: #fff7ef;
  color: var(--blue-dark);
}

.notice {
  max-width: 52rem;
  margin: 1.5rem 0;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  background: #fff7ef;
  border: 1px solid #f3d3b3;
  color: #5b3a12;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.25rem 0 .9rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--line);
  font-size: 1.2rem;
}

.section-title a {
  font-size: .8rem;
  font-weight: 500;
}

/* Target jump navigation */
.target-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.target-nav a {
  display: inline-block;
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--surface);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}

.target-nav a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* Data-by-target cards */
.targets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1rem;
}

.target {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-margin-top: 1rem;
}

.target.wide {
  grid-column: 1 / -1;
}

.target h3 {
  margin: 0 0 .5rem;
  color: var(--accent-dark);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.target h4 {
  margin: 1rem 0 .3rem;
  font-size: .9rem;
}

.target p {
  margin: .4rem 0 .8rem;
  color: var(--ink-soft);
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  padding: .3rem 0;
  max-width: none;
}

.link-list li + li {
  border-top: 1px solid var(--surface-alt);
}

.link-list a {
  font-weight: 600;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

.link-list.plain a {
  font-weight: 400;
}

.link-list .desc {
  color: var(--ink-soft);
}

.releases {
  margin: .5rem 0 0;
  padding: .7rem .9rem;
  border-radius: 6px;
  background: var(--surface-alt);
  list-style: none;
}

.releases li {
  padding: .15rem 0;
}

/* RSS news cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-card {
  display: flex;
  flex-direction: column;
  max-width: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-alt);
}

.news-card .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .35rem;
  padding: .85rem 1rem 1rem;
}

.news-card time {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.news-card a {
  color: var(--blue-dark);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.news-card a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.news-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .82rem;
}

.news-status {
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.feed-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.feed-link::before {
  content: "";
  width: .8em;
  height: .8em;
  border-radius: 2px;
  background:
    radial-gradient(circle at 20% 80%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 0 100%, transparent 0 35%, #fff 36% 47%, transparent 48% 62%, #fff 63% 74%, transparent 75%),
    #f26522;
}

/* Sidebar "New Releases" list */
.sidebarSection ul.news li .date,
.sidebarSection ul.news li time {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.sidebarSection .more {
  display: block;
  width: 100%;
  padding: .5rem .9rem;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--link);
  background: var(--surface-alt);
  font-size: .8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.sidebarSection .more:hover {
  color: var(--accent-dark);
}

/* Plain contact / address blocks */
.card {
  max-width: 40rem;
  margin: 0 0 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h2 {
  margin-top: 0;
  font-size: 1rem;
}

.card p,
.card address {
  margin: 0;
  font-style: normal;
}

.link-columns {
  columns: 2 18rem;
  column-gap: 2rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.link-columns li {
  break-inside: avoid;
  padding: .25rem 0;
}

.link-group {
  break-inside: avoid;
  margin-bottom: .9rem;
}

/* The home page loads the PDS "Need Help?" tab, fixed to the right edge */
@media (min-width: 861px) {
  body.menu_home #content { margin-right: 4.5rem; }
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  #sidebar,
  body.sidebar #sidebar {
    float: none;
    width: auto;
    padding: 1.25rem clamp(1rem, 3vw, 2rem) 0;
  }

  body.sidebar #content,
  body.sidebar #othercontent {
    margin-left: clamp(1rem, 3vw, 2rem);
  }

  /* On phones the content comes first, sidebar after it */
  body.sidebar.reflow {
    display: flex;
    flex-direction: column;
  }

  body.sidebar.reflow #sidebar { order: 5; }
  body.sidebar.reflow #content { order: 4; }
  body.sidebar.reflow #footer  { order: 6; }

  #menu a { padding: .6rem .65rem; font-size: .75rem; letter-spacing: .03em; }
  .page-intro img { width: 56px; }
  #logo a { font-size: 1rem; }
  #logo img { width: 44px; }
  #search { width: 100%; }
  #search input.text { flex: 1; width: auto; max-width: none; }
  #footer p.right { margin-left: 0; text-align: left; }
}

@media print {
  #menu, #submenu, #search, #nasaLinks, #sidebar { display: none !important; }
  body.sidebar #content { margin: 0; }
  #footer { color: #000 !important; background: none !important; }
  #footer a { color: #000; }
}
