/* === Modernized Base Styles === */
body {
  font-family: 'Inter', system-ui, Arial, sans-serif;
  background: #f6f8fa;
  color: #23272f;
  font-size: 1.3em;
  line-height: 1.7;
  margin: 0;
  padding: 0; }

/* === Section/Content Area Styling === */
.row {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(6, 57, 112, 0.04);
  margin-bottom: 2.2em;
  padding: 2.2em 2.2em 1.5em 2.2em;
  position: relative; }

@media (max-width: 700px) {
  .row {
    padding: 1.1em 0.7em 1em 0.7em; } }

.about-content {
  background: linear-gradient(120deg, #fff 80%, #f6f8fa 100%);
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(6, 57, 112, 0.04);
  padding: 1.5em 1.5em 1em 1.5em;
  margin-bottom: 1.5em; }

.chart-markdown {
  background: linear-gradient(120deg, #f8f9fa 80%, #fffbe6 100%);
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(6, 57, 112, 0.04);
  padding: 1.5em 1.5em 1em 1.5em;
  margin-bottom: 1.5em;
  border: 1.5px solid #f0e6d6; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, Arial, sans-serif;
  font-weight: 700;
  color: #063970;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  line-height: 1.2;
  letter-spacing: -0.01em; }

h1 {
  font-size: 2.1em;
  color: #063970; }

h2 {
  font-size: 1.5em;
  color: #1a355e; }

h3 {
  font-size: 1.2em;
  color: #1a355e; }

h4, h5, h6 {
  font-size: 1em;
  color: #1a355e; }

a {
  color: #0d7abf;
  text-decoration: none;
  transition: color 0.2s; }

a:hover, a:focus {
  color: #FFB347;
  text-decoration: underline;
  outline: none; }

strong, b {
  font-weight: 600;
  color: #23272f; }

em, i {
  color: #444; }

hr {
  border: none;
  border-top: 1.5px solid #e0e4ea;
  margin: 2.5em 0; }

/* Accent color for highlights, buttons, etc. */
:root {
  --accent: #FFB347;
  --accent-dark: #e09a2b;
  --primary: #063970;
  --background: #f6f8fa;
  --card-bg: #fff;
  --card-shadow: 0 3px 12px rgba(0,0,0,0.07); }

/* Add a black background color to the top navigation */
.topnav {
  background-color: var(--primary);
  overflow: hidden;
  margin-bottom: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(6, 57, 112, 0.07);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  min-height: 54px;
  transition: box-shadow 0.2s; }

/* Style the links inside the navigation bar */
.topnav a, .topnav span {
  color: #f2f2f2;
  text-align: center;
  padding: 14px 22px;
  text-decoration: none;
  font-size: 1.13em;
  font-weight: 500;
  border-radius: 5px;
  margin: 0 2px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  position: relative;
  display: inline-block; }

/* Change the color of links on hover */
.topnav a:hover, .topnav a:focus {
  background-color: var(--accent);
  color: #23272f;
  box-shadow: 0 2px 8px rgba(255, 179, 71, 0.1);
  outline: none; }

/* Add a color to the active/current link */
.topnav a.active {
  background-color: var(--accent);
  color: #23272f;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 179, 71, 0.13); }

.st-song-header {
  overflow: visible;
  width: 100%;
  display: inline-block; }

.st-title-wrapper {
  line-height: 1.2;
  display: block;
  width: 100%;
  overflow: visible;
  display: inline-block;
  margin-bottom: 10px; }

.st-chord-title {
  padding: 3px 0 12px 0;
  font-size: 0.9em;
  margin: 0;
  display: block;
  line-height: 1; }

.st-title {
  font-size: 1.5em;
  font-weight: bold;
  display: inline-block;
  white-space: normal;
  width: 75%; }

.st-sub-title {
  font-size: .7em;
  display: inline-block;
  white-space: normal;
  width: 85%; }

.st-artist-wrapper {
  font-size: 1em;
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  margin-bottom: 0;
  width: auto;
  overflow: visible; }

.st-artist {
  white-space: normal;
  display: inline-block;
  vertical-align: middle;
  font-style: italic;
  color: #444;
  padding-right: 8px;
  width: auto; }

.st-song-key-tempo-wrapper {
  font-size: .8em;
  font-weight: bold; }

.st-song-key-tempo {
  white-space: nowrap; }

.st-song-key {
  font-weight: bold;
  color: #000000;
  background-color: transparent; }

.st-tempo-time-wrapper {
  white-space: nowrap; }

.st-song-body {
  font-family: monospace;
  font-size: 1.15em;
  line-height: 1.8;
  overflow: visible; }

.st-section-title {
  display: block;
  font-weight: bold;
  line-height: 2;
  text-transform: uppercase;
  margin-top: 1em;
  margin-bottom: 0.5em;
  padding-left: 0;
  text-indent: 0; }

.st-song-line {
  display: block;
  margin-bottom: 0.8em;
  line-height: 1.8; }

.st-chord-wrapper {
  display: inline-block;
  position: relative;
  vertical-align: text-top;
  margin-right: 2px; }

.st-chord {
  position: absolute;
  bottom: 100%;
  left: 8px;
  transform: translateY(4.2px);
  font-weight: bold;
  white-space: nowrap;
  color: #c00;
  font-size: 0.9em;
  line-height: 1;
  padding-bottom: 1px; }

.st-chord-lyric {
  display: inline; }

.st-direction-wrapper {
  display: inline-block;
  position: relative;
  vertical-align: text-top;
  margin-right: 2px; }

.st-direction {
  position: absolute;
  bottom: 100%;
  left: 8px;
  transform: translateY(4.2px);
  font-weight: bold;
  white-space: nowrap;
  color: #c00;
  font-size: 0.9em;
  line-height: 1;
  padding-bottom: 1px; }

.st-chord-wrapper:has(+ .st-chord-wrapper) {
  margin-right: var(--width);
  padding-right: 10px; }

.st-chord-wrapper:first-child {
  margin-right: var(--width);
  padding-right: 10px; }

.st-chord-wrapper + .st-chord-wrapper {
  margin-right: var(--width);
  padding-right: 10px; }

#st-container {
  position: relative;
  overflow: hidden; }

/* Fix for sticky chord diagrams on mobile: remove overflow/position from #st-container */
@media (max-width: 700px) {
  #st-container {
    position: static !important;
    overflow: visible !important; } }

@media print {
  @page {
    margin: .7cm; }
  body {
    margin: 0;
    font-size: 0.95em; } }

.song-list {
  padding: 10px; }
  @media screen and (min-width: 768px) {
    .song-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px; } }

.song-item {
  border: none;
  padding: 12px 14px 10px 14px;
  border-radius: 6px;
  background: none;
  box-shadow: none;
  border-bottom: 1px solid #ececec;
  transition: background 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: visible; }

.song-item:hover, .song-item:focus-within {
  background: #f8f9fa;
  box-shadow: none;
  border-bottom: 1px solid var(--accent);
  z-index: 1; }

.song-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  /* Make sure link fills the .song-item */ }

.song-title {
  /* color: #063970; /* Already set, looks good */
  font-size: 1.15em;
  /* Make title slightly larger */
  font-weight: 600;
  /* Make title bolder */
  margin-bottom: 5px;
  /* Add space below title */ }

.song-artist {
  color: #6c757d;
  /* Standard subtle grey */
  font-size: 0.9em;
  /* Slightly larger than before */
  font-style: normal;
  /* Remove italics for cleaner look (optional) */
  margin-bottom: 0;
  /* Remove any bottom margin */ }

/* 5. Sidebar Text Styling */
.two.columns p {
  color: #555;
  /* Slightly darker grey for better readability */
  font-size: 0.95em;
  /* Adjust size if needed */
  line-height: 1.6; }

/* === Header/Logo Area Modernization === */
.site-header {
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 2px 12px rgba(6, 57, 112, 0.06);
  margin-bottom: 0;
  padding: 0 0 0.5em 0;
  position: relative;
  z-index: 10;
  border-bottom: 2.5px solid #f0f1f5; }

.header-logo {
  height: 68px;
  width: auto;
  margin-right: 0;
  margin-left: 2px;
  vertical-align: middle;
  position: relative;
  z-index: 1; }

.site-header h1 {
  font-size: 2em;
  margin: 0;
  padding: 0;
  color: #063970;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: transparent;
  padding-left: 1.5em;
  padding-right: 0.2em;
  white-space: nowrap;
  pointer-events: none; }

.site-header .twelve.columns {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 22px 0 12px 0;
  gap: 12px; }

.site-header .logo-link {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: inherit;
  padding: 0;
  margin: 0;
  vertical-align: middle; }

@media screen and (max-width: 750px) {
  .container {
    width: 100%;
    padding: 0 10px; }
  .song-item {
    margin-bottom: 15px;
    /* Ensure consistent spacing when stacked */ }
  /* Adjust body font-size on smaller screens if needed */
  body {
    font-size: 1.6em; } }

@media screen and (max-width: 700px) {
  .st-column {
    width: 100%;
    float: none;
    padding: 0; }
  .st-column.left-column {
    margin-bottom: 20px; }
  .st-column.right-column {
    padding-left: 0; } }

.about-content p,
.about-content li {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 1.1em;
  margin-top: 0.2em; }

/* Improved whitespace for markdown content */
.chart-markdown p {
  margin: 1.1em 0 1.1em 0;
  line-height: 1.8; }

.chart-markdown ul,
.chart-markdown ol {
  margin: 1.1em 0 1.1em 1.5em;
  padding-left: 1.2em; }

.chart-markdown li {
  margin-bottom: 0.7em;
  line-height: 1.7; }

.az-link {
  margin: 0 4px;
  color: #063970;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  padding: 2px 7px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  outline: none;
  position: relative; }

.az-link:hover,
.az-link:focus {
  background: var(--accent);
  color: #23272f;
  text-decoration: underline;
  box-shadow: 0 2px 8px rgba(255, 179, 71, 0.1);
  outline: 2px solid var(--accent-dark);
  outline-offset: 1px; }

.active-letter {
  font-weight: bold;
  text-decoration: underline;
  color: var(--accent-dark);
  background: #fffbe6;
  border-radius: 4px;
  padding: 2px 7px;
  box-shadow: 0 1px 4px rgba(255, 179, 71, 0.07); }

.chart-markdown {
  margin-bottom: 1.5em;
  background: #f8f9fa;
  border-radius: 7px;
  border: none;
  font-size: 0.9em;
  /* Use the same font-size as lyrics */
  color: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03); }
  .chart-markdown h1, .chart-markdown h2, .chart-markdown h3, .chart-markdown h4, .chart-markdown h5, .chart-markdown h6 {
    font-family: inherit;
    font-weight: 700;
    margin-top: 1.1em;
    margin-bottom: 0.4em;
    color: #063970;
    line-height: 1.2; }
  .chart-markdown h1 {
    font-size: 1em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.18em; }
  .chart-markdown h2 {
    font-size: 1em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.13em; }
  .chart-markdown h3 {
    font-size: 1em; }
  .chart-markdown p {
    margin: 0.7em 0;
    line-height: 1.7; }
  .chart-markdown ul, .chart-markdown ol {
    margin: 0.7em 0 0.7em 1.5em;
    padding-left: 1.2em; }
  .chart-markdown li {
    margin-bottom: 0.3em;
    line-height: 1.6; }
  .chart-markdown strong, .chart-markdown b {
    font-weight: bold;
    color: #222; }
  .chart-markdown em, .chart-markdown i {
    font-style: italic;
    color: #444; }
  .chart-markdown blockquote {
    border-left: 3px solid #bcd;
    margin: 1em 0;
    padding: 0.5em 1em;
    color: #555;
    background: #f3f6fa;
    font-style: italic; }
  .chart-markdown code {
    background: #f4f4f4;
    color: #c7254e;
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-size: 0.95em;
    font-family: "Fira Mono", "Consolas", monospace; }
  .chart-markdown pre {
    background: #f4f4f4;
    color: #333;
    padding: 0.7em 1em;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.97em;
    margin: 1em 0; }
  .chart-markdown a {
    color: #0074d9;
    text-decoration: underline; }
    .chart-markdown a:hover {
      color: #005fa3; }

/* Modern button style */
.button {
  display: inline-block;
  background: var(--accent);
  color: #23272f;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 0.6em 1.3em;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 179, 71, 0.07);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, outline 0.18s;
  outline: none;
  margin: 0.2em 0.3em; }

.button:hover,
.button:focus {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 179, 71, 0.13);
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px; }

/* === Enhanced Mobile Responsiveness === */
@media (max-width: 750px) {
  .container {
    width: 100%;
    padding: 0 6px; }
  .row {
    padding: 1.1em 0.3em 1em 0.3em;
    margin-bottom: 1.2em; }
  .site-header .twelve.columns {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0 8px 0;
    gap: 6px; }
  .header-logo {
    height: 48px;
    margin-bottom: 6px; }
  .site-header h1 {
    font-size: 1.2em; }
  .topnav {
    flex-direction: column;
    min-height: unset;
    padding: 0 2px;
    border-radius: 8px; }
  .topnav a, .topnav span {
    padding: 10px 8px;
    font-size: 1em;
    margin: 2px 0;
    width: 100%;
    border-radius: 5px; }
  .song-list {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 6px 0 0 0; }
  .song-item {
    padding: 16px 8px 14px 12px;
    border-radius: 10px; } }

@media (max-width: 500px) {
  .row {
    padding: 0.7em 0.1em 0.7em 0.1em; }
  .about-content,
  .chart-markdown {
    padding: 0.7em 0.3em 0.5em 0.3em;
    border-radius: 7px; }
  .song-title {
    font-size: 1em; }
  .song-item {
    padding: 10px 4px 10px 6px;
    border-radius: 7px; } }

/* Responsive chart page sidebar/main-content block visibility and sticky chord diagrams */
@media (max-width: 700px) {
  .sidebar-chord-diagrams,
  .sidebar-related-links {
    display: none !important; }
  .main-chord-diagrams,
  .main-related-links {
    display: block !important; }
  .main-chord-diagrams {
    padding: 0.7em 0.3em 0.5em 0.3em;
    margin-bottom: 1em;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03); } }

@media (min-width: 701px) {
  .main-chord-diagrams,
  .main-related-links {
    display: none !important; }
  .sidebar-chord-diagrams,
  .sidebar-related-links {
    display: block !important; } }
