/* SBE Site: pedal library, 48 Circuits, blog series cards, small fixes. Loaded after sbe-sections.css. */

/* latest-posts cards: line the date up with the title and excerpt */
.sbe-latest .wp-block-latest-posts__post-date { display: block; padding: 0 16px; margin-top: 4px; font-size: .8rem; color: var(--sbe-muted); }

/* ---------- pedal library: brand lists ---------- */
.sbe-pedal-brand #primary, .sbe-pedal #primary { margin-top: 28px !important; }
.sbe-pedal-brand .entry-content > br,
.sbe-pedal-brand .entry-content > p.has-text-align-left,
.sbe-pedal-brand .entry-content > figure.wp-block-image,
.sbe-pedal-brand .entry-content > h2.wp-block-heading { display: none !important; }
/* the brand logo is hidden, so its trademark note goes too (the library index carries a general note) */
.sbe-pedal-brand .entry-content > p.has-text-align-center { display: none !important; }
.sbe-pedal-brand .pedal-row { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px !important; width: auto !important; }
.sbe-pedal-brand .pedal-cell { display: flex !important; flex-direction: column; justify-content: center; gap: 6px; background: #fff; border: 1px solid var(--sbe-line) !important; border-radius: 10px; padding: 14px 16px !important; width: auto !important; min-height: 64px; text-align: left !important; transition: box-shadow .15s, border-color .15s; }
.sbe-pedal-brand .pedal-cell:hover { border-color: #c9d3bf !important; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.sbe-pedal-brand .pedal-cell > a:first-child { color: var(--sbe-ink); font-weight: 700; text-decoration: none; }
.sbe-mod-badge { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--sbe-olive-d) !important; background: #eef7e2; border-radius: 999px; padding: 3px 9px; text-decoration: none !important; }
.sbe-mod-badge:hover { background: var(--sbe-lime); color: #10200a !important; }

/* ---------- pedal library: single pedal pages ---------- */
.sbe-pedal .sbe-pedal-title { display: none !important; }
.sbe-pedal .entry-content > .wp-block-columns { background: #fff; border: 1px solid var(--sbe-line); border-radius: 14px; padding: 24px; box-shadow: 0 6px 24px rgba(0,0,0,.05); gap: 32px; }
.sbe-pedal #pedal-image img { border-radius: 10px; background: var(--sbe-paper-2); max-width: 100%; height: auto; }
.sbe-pedal .entry-content p strong { color: var(--sbe-ink); }
.sbe-pedal #pedal-description-desktop, .sbe-pedal #pedal-description-mobile { font-size: 1.02rem; line-height: 1.65; color: #2d3238; }
/* "Click Here for…" links under the image become two buttons */
.sbe-pedal #pedal-image + .price-buttons-desktop { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; width: 100%; }
.sbe-pedal #pedal-image + .price-buttons-desktop a { display: block; text-align: center; padding: 10px 14px; border-radius: 8px; border: 2px solid var(--sbe-ink); color: var(--sbe-ink); font-weight: 700; font-size: .88rem; text-decoration: none; }
.sbe-pedal #pedal-image + .price-buttons-desktop a:hover { background: var(--sbe-ink); color: #fff; }
/* where-to-buy buttons: keep the store colours, match the site's shape */
.sbe-pedal .amazon-button .wp-block-button__link, .sbe-pedal .reverb-button .wp-block-button__link, .sbe-pedal .ebay-button .wp-block-button__link { display: inline-block; line-height: 1.2; border-radius: 8px !important; font-size: .95rem !important; font-weight: 700 !important; padding: 10px 18px !important; }
/* room between the buy buttons and the affiliate note below them */
.sbe-pedal .price-buttons-desktop, .sbe-pedal .price-buttons-mobile { gap: 10px; margin-bottom: 14px !important; align-items: center; }
.sbe-pedal .price-buttons-desktop p:empty, .sbe-pedal .price-buttons-mobile p:empty { display: none; } /* stray empty paragraphs from the page generator */

/* ---------- pedal library index ---------- */
.sbe-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.sbe-brand-card { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--sbe-line); border-radius: 12px; padding: 22px 16px; text-decoration: none !important; color: var(--sbe-ink); text-align: center; transition: box-shadow .15s, transform .15s; }
.sbe-brand-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.sbe-brand-logo img { width: 110px; height: 110px; object-fit: contain; }
.sbe-brand-card span:last-child { font-size: .85rem; color: var(--sbe-muted); }

/* ---------- 48 Circuits ---------- */
.sbe-progress { height: 10px; border-radius: 999px; background: var(--sbe-paper-2); overflow: hidden; max-width: 520px; }
.sbe-progress span { display: block; height: 100%; background: var(--sbe-lime); border-radius: 999px; }
.sbe-progress-label { font-size: .88rem; color: var(--sbe-muted); margin: 8px 0 20px !important; }
.sbe-circuits .sbe-card img { aspect-ratio: 16/9; object-fit: cover; }

/* ---------- blog page: series cards ---------- */
.sbe-series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sbe-series-card { display: flex; flex-direction: column; background: var(--sbe-ink); color: #e9ece6; border-radius: 14px; overflow: hidden; }
.sbe-series-img { display: block; aspect-ratio: 21/8; background-size: cover; background-position: center; filter: saturate(.9); }
.sbe-series-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.sbe-series-body .sbe-eyebrow { color: var(--sbe-lime); }
.sbe-series-body h3 { margin: 0 0 6px; font-size: 1.45rem; }
.sbe-series-body h3 a { color: #fff; text-decoration: none; }
.sbe-series-body > p { color: #c9d0c7; margin: 0 0 14px; }
.sbe-series-list { list-style: none; margin: 0 0 18px !important; padding: 0 !important; border-top: 1px solid #3a4048; }
.sbe-series-list li { border-bottom: 1px solid #3a4048; }
.sbe-series-list a { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; color: #e9ece6; text-decoration: none; font-weight: 600; font-size: .95rem; }
.sbe-series-list a span { flex: none; min-width: 74px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sbe-lime); }
.sbe-series-list a:hover { color: var(--sbe-lime); }
.sbe-series-body .wp-block-buttons { margin-top: auto; }

@media (max-width: 760px) {
  .sbe-pedal-brand .pedal-row { grid-template-columns: 1fr; }
  .sbe-series-grid { grid-template-columns: 1fr; }
  .sbe-pedal .entry-content > .wp-block-columns { padding: 16px; }
}

/* cards are whole-card links: no underlines inside */
.sbe-card, .sbe-card *, .sbe-calc-card, .sbe-calc-card *, .sbe-brand-card, .sbe-brand-card * { text-decoration: none !important; }

/* pedal pages: image column + details column side by side on desktop */
@media (min-width: 782px) {
  .sbe-pedal .entry-content > .wp-block-columns { display: flex !important; flex-wrap: nowrap !important; align-items: flex-start; }
  .sbe-pedal .entry-content > .wp-block-columns > .wp-block-column:first-child { flex: 0 0 32% !important; }
  .sbe-pedal .entry-content > .wp-block-columns > .wp-block-column:last-child { flex: 1 1 auto !important; min-width: 0; }
}

/* "Click Here for…" links (desktop and mobile copies) as outline buttons */
.sbe-pedal .entry-content a[href*="custom-guitar-pedal-modifications-request"]:not(.wp-block-button__link),
.sbe-pedal .entry-content a[href*="guitar-pedal-repair-services"]:not(.wp-block-button__link) { display: block; text-align: center; padding: 10px 14px; margin: 6px 0; border-radius: 8px; border: 2px solid var(--sbe-ink); color: var(--sbe-ink); font-weight: 700; font-size: .88rem; text-decoration: none; }
.sbe-pedal .entry-content a[href*="custom-guitar-pedal-modifications-request"]:not(.wp-block-button__link):hover,
.sbe-pedal .entry-content a[href*="guitar-pedal-repair-services"]:not(.wp-block-button__link):hover { background: var(--sbe-ink); color: #fff; }

/* ---------- pedal pages: button styling + phone layout (Nov 2026) ---------- */
/* service links ("Click Here for Custom Modification Inquiries" / "...Repair Services"), desktop and mobile copies:
   solid brand green, white text, full width so both are the same size */
.sbe-pedal .entry-content a[href*="custom-guitar-pedal-modifications-request"]:not(.wp-block-button__link),
.sbe-pedal .entry-content a[href*="guitar-pedal-repair-services"]:not(.wp-block-button__link) {
  display: block !important; width: 100%; box-sizing: border-box; margin: 0 !important; padding: 11px 14px !important;
  background: var(--sbe-olive) !important; color: #fff !important; border: 2px solid var(--sbe-olive) !important; border-radius: 8px !important;
  font-size: .9rem !important; font-weight: 700 !important; line-height: 1.3; text-align: center; text-decoration: none !important; }
.sbe-pedal .entry-content a[href*="custom-guitar-pedal-modifications-request"]:not(.wp-block-button__link):hover,
.sbe-pedal .entry-content a[href*="guitar-pedal-repair-services"]:not(.wp-block-button__link):hover {
  background: var(--sbe-olive-d) !important; border-color: var(--sbe-olive-d) !important; color: #fff !important; }
@media (min-width: 783px) { /* the WPCode pedal CSS hides this desktop copy at 782px and below */
  .sbe-pedal #pedal-image + .price-buttons-desktop { display: flex !important; flex-direction: column; gap: 10px; margin: 16px 0 0 !important; align-self: stretch; }
}
.sbe-pedal #pedal-image + .price-buttons-desktop br { display: none; }
/* image column: photo and buttons share one width */
.sbe-pedal .entry-content > .wp-block-columns > .wp-block-column:first-child > .wp-block-group { align-items: stretch !important; }
.sbe-pedal .entry-content > .wp-block-columns > .wp-block-column:first-child > .wp-block-group > p:empty { display: none; }
.sbe-pedal #pedal-image img { display: block; width: 100%; height: auto; }

/* where-to-buy buttons: white with brand-green border and text, equal width */
.sbe-pedal .amazon-button .wp-block-button__link, .sbe-pedal .reverb-button .wp-block-button__link, .sbe-pedal .ebay-button .wp-block-button__link {
  background: #fff !important; color: var(--sbe-olive-d) !important; border: 2px solid var(--sbe-olive) !important; min-width: 170px; text-align: center; box-sizing: border-box; }
.sbe-pedal .amazon-button > a:hover, .sbe-pedal .reverb-button > a:hover, .sbe-pedal .ebay-button > a:hover {
  background: var(--sbe-olive) !important; color: #fff !important; border-color: var(--sbe-olive) !important; scale: 1 !important; }

/* phones: columns fill the card, everything centered, photo as wide as the buttons */
@media (max-width: 782px) {
  .sbe-pedal .entry-content > .wp-block-columns { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 18px; }
  .sbe-pedal .entry-content > .wp-block-columns > .wp-block-column { flex: 1 1 auto !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; text-align: center; }
  .sbe-pedal .entry-content > .wp-block-columns > .wp-block-column .wp-block-group { align-items: stretch !important; justify-content: center !important; }
  .sbe-pedal #pedal-image { width: 100%; margin: 0 !important; }
  .sbe-pedal .wp-block-column .wp-block-group.price-buttons-mobile > * { width: 100%; align-self: stretch !important; box-sizing: border-box; }
  /* mobile buy buttons: stacked, full width */
  .sbe-pedal .entry-content > .wp-block-columns > .wp-block-column .wp-block-group.is-nowrap { flex-direction: column !important; flex-wrap: wrap !important; gap: 10px; }
  .sbe-pedal [id^="pedal-button-mobile-"] { width: 100%; margin: 0 !important; }
  .sbe-pedal [id^="pedal-button-mobile-"] .wp-block-buttons, .sbe-pedal [id^="pedal-button-mobile-"] .wp-block-button { display: block !important; width: 100%; margin: 0 !important; }
  .sbe-pedal [id^="pedal-button-mobile-"] .wp-block-button__link { display: block !important; width: 100%; min-width: 0; }
  .sbe-pedal .entry-content p:has(> a[href*="custom-guitar-pedal-modifications-request"]), .sbe-pedal .entry-content p:has(> a[href*="guitar-pedal-repair-services"]) { margin: 0 0 10px !important; }
}
