:root {
  --etgc-green: #18c77a;
  --etgc-green-dark: #0e9f5f;
  --etgc-ink: #10251c;
  --etgc-muted: #5f7169;
  --etgc-line: #dbe8e1;
  --etgc-soft: #f3faf6;
  --etgc-white: #fff;
  --etgc-shadow: 0 18px 45px rgba(15, 48, 33, .10);
}

.etgc,
.etgc-home-card {
  box-sizing: border-box;
  color: var(--etgc-ink);
  font-family: inherit;
  text-shadow: none !important;
  -webkit-text-stroke: 0 transparent !important;
}

.etgc *,
.etgc-home-card * {
  box-sizing: border-box;
  text-shadow: none !important;
  -webkit-text-stroke: 0 transparent !important;
  filter: none !important;
}

body.etgc-page .entry-header > .entry-title,
body.etgc-page .page-header > .page-title,
body.etgc-page .page-header > .entry-title,
body.etgc-page h1.wp-block-post-title,
body.etgc-page main > .page-header,
body.etgc-page .site-main > article.page > header.entry-header,
body.etgc-page .entry-content > h1:first-child { display: none !important; }

header .etgc-header-link {
  white-space: nowrap;
  text-decoration: none;
}

.etgc {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 72px;
  font-size: 16px;
  line-height: 1.65;
}

.etgc h1,
.etgc h2,
.etgc p { margin-top: 0; }

.etgc h1,
.etgc h2 {
  color: var(--etgc-ink) !important;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.14;
  opacity: 1 !important;
}

.etgc h1 { font-size: clamp(2.25rem, 5vw, 4.65rem); }
.etgc h2 { font-size: clamp(1.35rem, 2.5vw, 2rem); }

.etgc-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--etgc-green-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.etgc-hero {
  overflow: hidden;
  position: relative;
  padding: clamp(36px, 7vw, 82px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 10%, rgba(24, 199, 122, .28), transparent 30%),
    linear-gradient(145deg, #071d14, #123728);
  box-shadow: var(--etgc-shadow);
  text-align: center;
}

.etgc-hero::after {
  content: "♪";
  position: absolute;
  right: 7%;
  bottom: -54px;
  color: rgba(255,255,255,.045);
  font-size: 220px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.etgc-hero h1 { margin-bottom: 16px; color: #fff !important; }
.etgc-hero p {
  max-width: 670px;
  margin: 0 auto 28px;
  color: #c8ddd2;
  font-size: clamp(1rem, 2vw, 1.16rem);
}

body .etgc.etgc-library .etgc-hero #etgc-title {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  -webkit-text-stroke: 0 transparent !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

body .etgc.etgc-library .etgc-hero > p {
  color: #d7e8df !important;
  -webkit-text-fill-color: #d7e8df !important;
  -webkit-text-stroke: 0 transparent !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.etgc-search-wrap {
  display: flex;
  align-items: center;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}

.etgc-search-wrap svg {
  flex: 0 0 24px;
  width: 24px;
  fill: none;
  stroke: #60746a;
  stroke-linecap: round;
  stroke-width: 2;
}

.etgc-search-wrap input[type="search"] {
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--etgc-ink);
  font: inherit;
  font-size: 1.05rem;
}

.etgc-search-wrap input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

.etgc-root-filters {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin: 28px 0 36px;
  padding: 5px 2px 10px;
  scrollbar-width: thin;
}

.etgc-root-filters button {
  flex: 0 0 auto;
  min-width: 49px;
  min-height: 45px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--etgc-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: var(--etgc-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: .2s ease;
}

.etgc-root-filters button:hover,
.etgc-root-filters button:focus-visible,
.etgc-root-filters button.is-active {
  border-color: var(--etgc-green);
  background: var(--etgc-green);
  color: #062416;
  transform: translateY(-1px);
}

.etgc-popular {
  margin-bottom: 44px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--etgc-line);
  border-radius: 22px;
  background: var(--etgc-soft);
}

.etgc-popular h2 { margin-bottom: 18px; font-size: 1.25rem; }
.etgc-popular-row { display: flex; flex-wrap: wrap; gap: 10px; }
.etgc-popular-row a {
  min-width: 58px;
  padding: 10px 16px;
  border: 1px solid #cfe2d7;
  border-radius: 999px;
  background: #fff;
  color: var(--etgc-ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.etgc-popular-row a:hover { border-color: var(--etgc-green); color: var(--etgc-green-dark); }

.etgc-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.etgc-list-heading h2,
.etgc-list-heading p { margin-bottom: 0; }
.etgc-list-heading p { color: var(--etgc-muted); }
.etgc-list-heading a { color: var(--etgc-green-dark); font-weight: 750; text-decoration: none; }

.etgc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.etgc-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--etgc-line);
  border-radius: 16px;
  background: #fff;
  color: var(--etgc-ink);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.etgc-card strong { font-size: 1.25rem; }
.etgc-card span { grid-column: 1; color: var(--etgc-muted); font-size: .86rem; }
.etgc-card svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 22px;
  fill: none;
  stroke: var(--etgc-green-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.etgc-card:hover,
.etgc-card:focus-visible {
  border-color: var(--etgc-green);
  box-shadow: 0 12px 26px rgba(17, 92, 58, .11);
  color: var(--etgc-ink);
  transform: translateY(-2px);
}
.etgc-card[hidden] { display: none; }
.etgc-empty { padding: 45px 20px; border-radius: 18px; background: var(--etgc-soft); text-align: center; }

.etgc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 32px;
  color: var(--etgc-muted);
  font-size: .9rem;
}
.etgc-breadcrumb a { color: var(--etgc-green-dark); text-decoration: none; }

.etgc-detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.etgc-detail-header h1 { margin-bottom: 14px; font-size: clamp(2.2rem, 5vw, 4.25rem); }
.etgc-detail-header p { max-width: 700px; margin-bottom: 0; color: var(--etgc-muted); font-size: 1.08rem; }

.etgc-level {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e8f9f0;
  color: #087746;
  font-size: .82rem;
  font-weight: 800;
}
.etgc-level-advanced { background: #fff1e6; color: #9a4c0a; }
.etgc-level-intermediate { background: #fff8d9; color: #7b6500; }

.etgc-detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.etgc-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--etgc-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--etgc-shadow);
}
.etgc-panel h2 { margin-bottom: 24px; }
.etgc-diagram-panel { text-align: center; }
.etgc-diagram { display: block; width: min(100%, 320px); height: auto; margin: 0 auto; overflow: visible; }
.etgc-string { stroke: #43564d; stroke-width: 2; }
.etgc-fret { stroke: #85958d; stroke-width: 1.4; }
.etgc-nut { stroke: var(--etgc-ink); stroke-width: 7; }
.etgc-dot { fill: var(--etgc-green); stroke: #087746; stroke-width: 2; }
.etgc-open { fill: #fff; stroke: var(--etgc-ink); stroke-width: 2; }
.etgc-marker { fill: var(--etgc-ink); font-size: 22px; font-weight: 700; }
.etgc-fret-number { fill: var(--etgc-muted); font-size: 13px; }
.etgc-string-labels { display: grid; grid-template-columns: repeat(6, 1fr); width: min(100%, 275px); margin: -22px auto 24px; color: var(--etgc-muted); font-size: .78rem; }

.etgc-play,
.etgc-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin: 0;
  padding: 11px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--etgc-green);
  box-shadow: none;
  color: #062416;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}
.etgc-play:hover,
.etgc-play:focus-visible,
.etgc-primary-link:hover { background: #24db8b; color: #062416; transform: translateY(-1px); }
.etgc-play svg { width: 20px; fill: currentColor; }
.etgc-play.is-playing svg { animation: etgc-pulse .75s ease infinite alternate; }
@keyframes etgc-pulse { to { transform: scale(1.22); } }

.etgc-info-panel > p { color: var(--etgc-muted); }
.etgc-facts { margin: 28px 0; }
.etgc-facts div { display: grid; grid-template-columns: 112px 1fr; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--etgc-line); }
.etgc-facts dt { color: var(--etgc-muted); font-weight: 700; }
.etgc-facts dd { margin: 0; color: var(--etgc-ink); font-weight: 700; }
.etgc-facts code { padding: 4px 8px; border-radius: 6px; background: var(--etgc-soft); color: var(--etgc-ink); font-size: .95rem; }
.etgc-tip { padding: 18px; border-left: 4px solid var(--etgc-green); border-radius: 0 12px 12px 0; background: var(--etgc-soft); color: var(--etgc-muted); }

.etgc-related { margin-top: 58px; }
.etgc-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.etgc-related-grid a { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--etgc-line); border-radius: 15px; background: #fff; color: var(--etgc-ink); text-decoration: none; }
.etgc-related-grid a:hover { border-color: var(--etgc-green); }
.etgc-related-grid span { color: var(--etgc-muted); font-size: .82rem; }

.etgc-app-cta,
.etgc-home-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  position: relative;
  margin-top: 58px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 24px;
  background: linear-gradient(140deg, #092116, #17432f);
  color: #c9ddd3;
}
.etgc-app-cta h2,
.etgc-home-card h2 { margin-bottom: 0; color: #fff !important; }
.etgc-app-cta a,
.etgc-home-card a { flex: 0 0 auto; padding: 13px 20px; border-radius: 11px; background: var(--etgc-green); color: #062416; font-weight: 800; text-decoration: none; }

.etgc-home-card {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 64px;
}
.etgc-home-card p { max-width: 680px; margin: 10px 0 0; color: #c9ddd3; }

.etgc-not-found { padding: 70px 20px; text-align: center; }
.etgc-not-found h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.etgc-not-found p { color: var(--etgc-muted); }

@media (max-width: 960px) {
  .etgc-grid { grid-template-columns: repeat(3, 1fr); }
  .etgc-detail-grid { grid-template-columns: 1fr; }
  .etgc-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .etgc { width: min(100% - 22px, 1180px); margin-top: 22px; }
  .etgc-hero { border-radius: 21px; }
  .etgc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .etgc-card { min-height: 96px; padding: 15px; }
  .etgc-card strong { font-size: 1.08rem; }
  .etgc-list-heading { align-items: start; flex-direction: column; gap: 4px; }
  .etgc-detail-header { flex-direction: column; gap: 15px; }
  .etgc-panel { border-radius: 19px; }
  .etgc-facts div { grid-template-columns: 88px 1fr; }
  .etgc-app-cta,
  .etgc-home-card { align-items: flex-start; flex-direction: column; border-radius: 19px; }
  .etgc-app-cta a,
  .etgc-home-card a { width: 100%; text-align: center; }
}

@media (max-width: 390px) {
  .etgc-grid { grid-template-columns: 1fr; }
  .etgc-related-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .etgc *, .etgc-home-card * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
