/* Gear Ratio Calculator — custom site chrome (dark, sticky header + wide layout) */

/* Hide the theme's default header (we inject our own via wp_body_open) */
header.wp-block-template-part,
.site-header,
.wp-block-template-part.header {
  display: none !important;
}

/* Hide the theme's default footer (it renders untranslated trans-* keys;
   our own footer is injected via wp_footer) */
footer.wp-block-template-part,
.site-footer,
.wp-block-template-part.footer {
  display: none !important;
}

/* ---- Custom footer ---- */
.grc-footer {
  background: #10151b;
  border-top: 2px solid #f0b429;
  margin-top: 40px;
}
.grc-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.grc-fcol h4 {
  color: #f0b429;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 12px;
}
.grc-fcol ul { list-style: none; margin: 0; padding: 0; }
.grc-fcol li { margin-bottom: 8px; }
.grc-fcol a {
  color: #c8cdd4;
  text-decoration: none;
  font-size: .9rem;
}
.grc-fcol a:hover { color: #f0b429; }
.grc-fbrand p {
  color: #9aa3ad;
  font-size: .88rem;
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 300px;
}
.grc-copy {
  text-align: center;
  color: #7d8791;
  font-size: .82rem;
  padding: 14px 20px 20px;
  border-top: 1px solid #232d38;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .grc-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .grc-footer-inner { grid-template-columns: 1fr; }
}

/* ---- Custom header ---- */
.grc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #10151b;
  border-bottom: 2px solid #f0b429;
  box-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.grc-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.grc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.grc-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.grc-brand span {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .3px;
  line-height: 1.2;
}
.grc-brand span em {
  display: block;
  font-style: normal;
  color: #f0b429;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.grc-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}
.grc-nav li a {
  display: block;
  color: #c8cdd4;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  padding: 9px 11px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.grc-nav li a:hover {
  color: #f0b429;
  background: rgba(240,180,41,.08);
}
.grc-nav li.active a {
  color: #141a21;
  background: #f0b429;
}
.grc-burger {
  display: none;
  background: none;
  border: 1px solid #f0b429;
  color: #f0b429;
  font-size: 1.3rem;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}

/* ---- Wider, better page layout ---- */
/* Let the tool breathe: widen the theme's narrow content column on tool pages */
body .wp-block-post-content,
body main.wp-block-group,
body .entry-content {
  max-width: 1120px !important;
}
.grc-scope .wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
/* Tool topbar: full-width dark band instead of floating in whitespace */
.grc-scope .topbar {
  border-radius: 14px;
  margin-top: 18px;
}

/* ---- Mobile ---- */
@media (max-width: 860px) {
  .grc-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 12px;
    flex-direction: column;
    background: #161d25;
    border: 1px solid #2a3441;
    border-radius: 12px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
  }
  .grc-nav.open ul { display: flex; }
  .grc-nav { position: relative; }
  .grc-burger { display: block; }
  .grc-brand span { font-size: 1rem; }
}
