/* ============================================================
   MORSECOD MODERN DESIGN — visual design layer
   Cards, gradient hero, styled tables, dark footer, pill badge.
   ============================================================ */

:root {
  --mc-navy: #0F2B46;
  --mc-navy-deep: #0B1F36;
  --mc-teal: #14B8A6;
  --mc-teal-dark: #0D9488;
  --mc-teal-light: #2DD4BF;
  --mc-ink: #111827;
  --mc-muted: #5B6B7F;
  --mc-line: #E2E8F0;
  --mc-soft: #F8FAFC;
}

html { scroll-behavior: smooth; }

::selection { background: var(--mc-teal); color: #fff; }

/* ---------- Hero: soft gradient band behind the top ---------- */
#post-9001 .entry-content {
  background: linear-gradient(180deg, #E9F7F6 0%, rgba(233, 247, 246, 0) 560px);
}

/* Eyebrow -> pill badge (overrides inline black style) */
.single-content p[style*="letter-spacing"] {
  display: inline-block !important;
  background: linear-gradient(135deg, var(--mc-teal), var(--mc-teal-dark)) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 2.5px !important;
  padding: 9px 20px !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 22px -10px rgba(20, 184, 166, .65);
  margin-bottom: 1.1rem !important;
}

/* H1 — keep the requested black, but modern scale */
.single-content h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.5rem) !important;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: .5em;
}

/* ---------- Translator tool as a floating card ---------- */
#amc-wrap {
  background: #fff;
  border: 1px solid var(--mc-line);
  border-top: 5px solid var(--mc-teal);
  border-radius: 20px;
  box-shadow: 0 34px 80px -32px rgba(15, 43, 70, .35);
  padding: clamp(20px, 4vw, 42px);
  margin: 2.2rem auto;
  max-width: 940px;
}

/* ---------- Tables: navy header, stripes, hover ---------- */
.single-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--mc-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 44px -22px rgba(15, 43, 70, .28);
  font-size: .95rem;
  margin: 1.6rem 0 2.2rem;
}
.single-content thead th {
  background: var(--mc-navy);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.single-content tbody td {
  padding: 12px 16px;
  border-top: 1px solid #EDF2F7;
}
.single-content tbody tr:nth-child(even) { background: var(--mc-soft); }
.single-content tbody tr:hover { background: #EAF7F6; }
/* Morse values in mono + teal */
.single-content tbody td:last-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  color: var(--mc-teal-dark);
  letter-spacing: .04em;
}

/* ---------- H2 with teal accent bar ---------- */
.single-content h2 {
  scroll-margin-top: 110px;
  padding-bottom: .25em;
  letter-spacing: -0.015em;
}
.single-content h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--mc-teal), var(--mc-teal-light));
  margin-top: .4em;
}
[id] { scroll-margin-top: 110px; }

/* ---------- Content links ---------- */
.single-content a {
  color: var(--mc-teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.single-content a:hover { color: var(--mc-navy); }

/* ---------- Buttons: hover lift ---------- */
.wp-block-button__link,
button.button,
input[type="submit"],
.button {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.wp-block-button__link:hover,
button.button:hover,
input[type="submit"]:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -12px rgba(20, 184, 166, .6);
}

/* ---------- Header: soft shadow ---------- */
#masthead.site-header {
  box-shadow: 0 8px 30px -14px rgba(15, 43, 70, .22);
}
.main-navigation a { font-weight: 600; }

/* ---------- Mobile menu trigger: always dark/visible ---------- */
#mobile-toggle,
#mobile-toggle .menu-toggle-icon {
  color: #0F2B46 !important;
}

/* ---------- Primary nav: compact, refined ---------- */
#site-navigation ul.menu > li > a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

/* ---------- Wide tablets / phone "desktop site" mode: show full desktop header ---------- */
@media screen and (min-width: 961px) and (max-width: 1024px) {
  #main-header { display: block !important; }
  #mobile-header { display: none !important; }
  /* tighten the desktop header so it fits on one line in this range */
  #site-navigation ul.menu > li > a { font-size: 14px; }
  #masthead .button { white-space: nowrap; font-size: 14px; }
}

/* ---------- Footer: dark navy, modern ---------- */
#colophon.site-footer {
  background: linear-gradient(180deg, var(--mc-navy) 0%, var(--mc-navy-deep) 100%);
  color: #D5E2F0;
  border-top: 4px solid var(--mc-teal);
  margin-top: 4rem;
}
#colophon .footer-widget-area {
  padding: 3.5rem 0 2rem;
}
#colophon .widget {
  margin-bottom: 2rem;
}
#colophon .widget-title,
#colophon .widget h4,
#colophon h2, #colophon h3, #colophon h4 {
  color: #fff !important;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid rgba(20, 184, 166, .55);
  display: inline-block;
}
#colophon p {
  color: #D5E2F0;
  line-height: 1.75;
  margin-bottom: 1rem;
}
#colophon ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#colophon .footer-widget-area li {
  margin-bottom: .65rem;
}
#colophon a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
#colophon a:hover {
  color: var(--mc-teal-light);
}
#colophon .site-bottom-footer-wrap {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 1.2rem 0;
  color: #B9CBDF;
  font-size: .88rem;
}
#colophon .site-bottom-footer-wrap a {
  color: #D5E2F0;
}

/* ---------- Lists breathing room ---------- */
.single-content ul li, .single-content ol li { margin-bottom: .5rem; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  #colophon .footer-widget-area {
    padding: 2.5rem 0 1rem;
  }
  #colophon .widget {
    margin-bottom: 2.2rem;
  }
}
@media (max-width: 640px) {
  #amc-wrap { padding: 18px; border-radius: 16px; }
  .single-content table { font-size: .84rem; }
  .single-content tbody td { padding: 9px 10px; }
  .single-content thead th { padding: 10px; }
}
