/*
Theme Name: Clipless Pedal
Theme URI: https://cliplesspedal.com/
Author: Clipless Pedal
Author URI: https://cliplesspedal.com/
Description: A fast, accessible editorial WordPress theme for cycling shoes, clipless pedals, cleats, compatibility guides, comparisons, and reviews.
Version: 1.3.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clipless-pedal
Tags: blog, news, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --cp-navy: #0a0f18;
  --cp-navy-2: #0b2a44;
  --cp-blue: #075dcc;
  --cp-blue-dark: #003b8f;
  --cp-orange: #ff5a1f;
  --cp-orange-dark: #c63b0c;
  --cp-cream: #fff3eb;
  --cp-off-white: #f4f7fa;
  --cp-gray: #e6ebf0;
  --cp-mid: #5d6878;
  --cp-green: #0f9f85;
  --cp-cyan: #16bffd;
  --cp-lime: #ff8a5b;
  --cp-white: #ffffff;
  --cp-ink: #152033;
  --cp-shadow: 0 22px 60px rgba(10, 35, 58, 0.14);
  --cp-radius: 22px;
  --cp-width: 1240px;
  --cp-reading: 780px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--cp-off-white);
  background-image: radial-gradient(circle at 8% 18%, rgba(7,93,204,.065), transparent 26rem);
  color: var(--cp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

a { color: var(--cp-orange-dark); text-underline-offset: 3px; }
a:hover { color: var(--cp-navy); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid var(--cp-cyan);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.screen-reader-text:focus {
  clip: auto !important; width: auto; height: auto; margin: 12px;
  padding: 12px 18px; background: var(--cp-white); color: var(--cp-navy);
  z-index: 99999; border-radius: 8px;
}

.cp-container { width: min(calc(100% - 36px), var(--cp-width)); margin-inline: auto; }
.cp-reading { width: min(calc(100% - 36px), var(--cp-reading)); margin-inline: auto; }
.site-main { min-height: 62vh; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  color: #fff; background: rgba(7,11,18,.94); border-bottom: 1px solid rgba(22,191,253,.16);
  box-shadow: 0 12px 38px rgba(3,5,15,.22);
  backdrop-filter: blur(18px);
}
.site-header.is-scrolled { box-shadow: 0 18px 46px rgba(3,5,15,.3); border-bottom-color: rgba(22,191,253,.28); }

.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 26px; }
.site-branding { margin-right: auto; min-width: max-content; }
.custom-logo { max-height: 52px; width: auto; }
.site-title { margin: 0; font-size: 1.28rem; font-weight: 850; letter-spacing: -.035em; }
.site-title a { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.site-title a::before {
  content: ""; width: 30px; height: 18px; border: 5px solid var(--cp-cyan);
  border-radius: 7px 13px 13px 7px; transform: rotate(-8deg); box-shadow: 0 0 20px rgba(22,191,253,.42);
}
.site-description { margin: 2px 0 0 40px; color: #c7cbdd; font-size: .72rem; line-height: 1.2; }

.main-navigation ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-navigation li { position: relative; }
.main-navigation a { display: block; padding: 10px 11px; color: #f3f4ff; text-decoration: none; font-size: .91rem; font-weight: 700; border-radius: 9px; }
.main-navigation a { transition: color .2s ease, background .2s ease, transform .2s ease; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: #ff9d78; background: rgba(255,255,255,.08); transform: translateY(-1px); }
.main-navigation .sub-menu { position: absolute; top: calc(100% + 8px); left: 0; display: none; width: max-content; min-width: 220px; padding: 10px; border: 1px solid rgba(22,191,253,.2); border-radius: 14px; background: rgba(7,11,18,.98); box-shadow: 0 20px 45px rgba(0,0,0,.28); }
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { display: flex; align-items: stretch; flex-direction: column; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; padding: 11px 17px; background: linear-gradient(110deg,var(--cp-blue),var(--cp-blue-dark)); color: #fff; text-decoration: none; border-radius: 999px; font-size: .88rem; font-weight: 800; box-shadow: 0 10px 26px rgba(7,93,204,.34); transition: transform .22s ease, box-shadow .22s ease; }
.header-cta:hover { color: #fff; background: linear-gradient(110deg,#0b70e0,var(--cp-blue-dark)); transform: translateY(-2px); box-shadow: 0 15px 32px rgba(7,93,204,.4); }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 10px; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; }
.menu-toggle span { display: block; width: 23px; height: 2px; margin: 4px 0; background: currentColor; }

.cp-hero {
  position: relative; overflow: hidden; padding: clamp(72px, 9vw, 124px) 0;
  color: #f9fbff; background:
    linear-gradient(90deg, rgba(5,9,15,.98) 0%, rgba(8,26,43,.94) 48%, rgba(4,32,54,.60) 100%),
    url("assets/images/road-pedal.jpg") center right / cover no-repeat;
}
.cp-hero::before { content: ""; position: absolute; width: min(42vw,620px); aspect-ratio: 1; right: -11%; top: -46%; border: 1px solid rgba(255,90,31,.35); border-radius: 50%; box-shadow: 0 0 0 55px rgba(7,93,204,.09), 0 0 0 112px rgba(22,191,253,.045); animation: cp-orbit 14s ease-in-out infinite alternate; pointer-events: none; }
.cp-hero::after { content: ""; position: absolute; inset: 0; opacity: .10; background-image: linear-gradient(135deg, transparent 48%, #fff 49%, transparent 50%); background-size: 42px 42px; animation: cp-grid-drift 18s linear infinite; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); align-items: center; gap: clamp(36px,6vw,78px); }
.eyebrow { margin: 0 0 16px; color: var(--cp-orange-dark); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.cp-hero .eyebrow { color: #ff9d78; }
.cp-hero h1 { max-width: 760px; margin: 0; color: #ffffff; font-size: clamp(2.75rem,6vw,5.2rem); line-height: .98; letter-spacing: -.065em; text-shadow: 0 5px 28px rgba(2,4,15,.34); }
.cp-hero h1::after { content: ""; display: block; width: clamp(90px,16vw,190px); height: 7px; margin-top: 24px; border-radius: 999px; background: linear-gradient(90deg,var(--cp-orange),var(--cp-cyan)); box-shadow: 0 0 25px rgba(22,191,253,.32); }
.hero-copy { max-width: 680px; margin: 24px 0 0; color: #e6e7f5; font-size: clamp(1.02rem,2vw,1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cp-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 21px; border: 2px solid transparent; border-radius: 999px; font-size: .93rem; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.cp-button--primary { color: #fff; background: linear-gradient(110deg,var(--cp-blue),var(--cp-blue-dark)); box-shadow: 0 10px 24px rgba(7,93,204,.27); }
.cp-button--primary:hover { color: #fff; background: linear-gradient(110deg,#0b70e0,var(--cp-blue-dark)); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(7,93,204,.38); }
.cp-button--ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.07); }
.cp-button--ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.14); }
.cp-button--navy { color: #fff; background: var(--cp-navy); }
.cp-button--navy:hover { color: #fff; background: var(--cp-navy-2); }

.hero-panel { position: relative; color: #fff; border: 1px solid rgba(22,191,253,.34); border-radius: 30px; padding: 28px; background: linear-gradient(145deg,rgba(8,24,40,.92),rgba(5,10,18,.84)); box-shadow: 0 35px 100px rgba(2,4,15,.46), inset 0 1px 0 rgba(255,255,255,.09); backdrop-filter: blur(20px); animation: cp-panel-float 6s ease-in-out infinite; }
.hero-panel::before { content: "COMPATIBILITY"; display: block; margin-bottom: 18px; color: #ff9d78; font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.hero-panel::after { content: ""; position: absolute; width: 110px; height: 110px; right: -36px; bottom: -40px; border-radius: 50%; background: var(--cp-cyan); opacity: .16; filter: blur(28px); pointer-events: none; }
.compatibility-line { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.17); }
.compatibility-line:first-of-type { border-top: 0; }
.compatibility-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: #fff; background: linear-gradient(145deg,var(--cp-blue),var(--cp-blue-dark)); box-shadow: 0 8px 22px rgba(7,93,204,.32); font-weight: 900; }
.compatibility-line strong { display: block; color: #fff; line-height: 1.25; }
.compatibility-line small { color: #cbd0e8; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #45e0a8; box-shadow: 0 0 0 5px rgba(69,224,168,.13); animation: cp-pulse 2.3s ease-out infinite; }

.cp-section { padding: clamp(58px,7vw,92px) 0; }
.cp-section--white { background: #fff; }
.cp-section--cream { background: linear-gradient(135deg,var(--cp-cream),#f7fbff 58%,#eaf5ff); }
.cp-section--navy { color: #fff; background: radial-gradient(circle at 84% 16%,rgba(7,93,204,.38),transparent 30%),linear-gradient(140deg,var(--cp-navy),#082c49); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { max-width: 720px; margin: 0; color: var(--cp-navy); font-size: clamp(2rem,4vw,3.2rem); line-height: 1.08; letter-spacing: -.045em; }
.cp-section--navy .section-heading h2 { color: #fff; }
.section-heading p { max-width: 560px; margin: 10px 0 0; color: var(--cp-mid); }
.cp-section--navy .section-heading p { color: #cbd6e2; }
.text-link { font-weight: 850; text-decoration-thickness: 2px; }

.cp-grid { display: grid; gap: 22px; }
.cp-grid--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cp-grid--4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.cp-card { position: relative; overflow: hidden; border: 1px solid #dce4eb; border-radius: var(--cp-radius); background: rgba(255,255,255,.98); box-shadow: 0 12px 38px rgba(8,38,63,.08); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.cp-card::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg,var(--cp-orange),var(--cp-cyan)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.cp-card:hover, .cp-card:focus-within { border-color: rgba(7,93,204,.35); transform: translateY(-8px); box-shadow: 0 24px 56px rgba(8,38,63,.16); }
.cp-card:hover::after, .cp-card:focus-within::after { transform: scaleX(1); }
.cp-card__body { padding: 23px; }
.cp-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-bottom: 12px; color: var(--cp-blue); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.cp-card h3 { margin: 0; color: var(--cp-navy); font-size: 1.28rem; line-height: 1.25; letter-spacing: -.025em; }
.cp-card h3 a { color: inherit; text-decoration: none; }
.cp-card h3 a:hover { color: var(--cp-orange-dark); }
.cp-card p { margin: 12px 0 0; color: #4f5f71; font-size: .93rem; line-height: 1.62; }
.cp-card__image { display: block; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(145deg,#dbe6ef,#f5f7f9); }
.cp-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cp-card:hover .cp-card__image img, .cp-card:focus-within .cp-card__image img { transform: scale(1.055); }
.cp-card--feature { padding: 28px; color: #fff; border: 0; background: linear-gradient(145deg,var(--cp-navy),#083f68); }
.cp-card--feature h3 { color: #fff; }
.cp-card--feature p { color: #d8e2ec; }
.cp-grid--3 > .cp-card--feature:only-child { grid-column: 1 / -1; min-height: 250px; display: flex; justify-content: center; flex-direction: column; background: linear-gradient(90deg,rgba(5,12,20,.97),rgba(7,64,103,.83)),url("assets/images/gravel-pedal.jpg") center/cover no-repeat; }

.style-card { min-height: 255px; padding: 28px; border-radius: var(--cp-radius); color: #fff; background: linear-gradient(180deg,rgba(4,11,18,.14),rgba(4,11,18,.92)),url("assets/images/road-pedal.jpg") center/cover no-repeat; position: relative; overflow: hidden; box-shadow: 0 18px 42px rgba(8,38,63,.18); transition: transform .3s ease, box-shadow .3s ease, background-size .45s ease; }
.style-card:nth-child(2) { background-image: linear-gradient(180deg,rgba(4,11,18,.12),rgba(4,11,18,.92)),url("assets/images/gravel-pedal.jpg"); }
.style-card:nth-child(3) { background-image: linear-gradient(180deg,rgba(4,11,18,.16),rgba(4,11,18,.94)),url("assets/images/road-pedal.jpg"); }
.style-card:nth-child(4) { background-image: linear-gradient(180deg,rgba(4,11,18,.10),rgba(4,11,18,.93)),url("assets/images/indoor-pedal.jpg"); }
.style-card:hover, .style-card:focus-within { transform: translateY(-8px) rotate(-.25deg); box-shadow: 0 28px 58px rgba(8,38,63,.28); }
.style-card::after { content: ""; position: absolute; right: -30px; bottom: -38px; width: 150px; height: 150px; border: 23px solid rgba(255,255,255,.12); border-radius: 50%; }
.style-card span { position: relative; z-index: 1; display: inline-flex; padding: 6px 10px; border-radius: 999px; color: #fff; background: var(--cp-orange-dark); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.style-card h3 { position: relative; z-index: 1; margin: 88px 0 0; font-size: 1.55rem; line-height: 1.12; text-shadow: 0 3px 16px rgba(0,0,0,.55); }
.style-card a { position: absolute; inset: 0; z-index: 2; }

.system-list { display: flex; flex-wrap: wrap; gap: 11px; margin: 0; padding: 0; list-style: none; }
.system-list a { display: inline-flex; padding: 10px 15px; border: 1px solid #cddbe7; border-radius: 999px; color: var(--cp-navy); background: #fff; text-decoration: none; font-size: .87rem; font-weight: 800; transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.system-list a:hover { color: #fff; border-color: var(--cp-blue); background: linear-gradient(110deg,var(--cp-blue),var(--cp-blue-dark)); transform: translateY(-2px); box-shadow: 0 9px 20px rgba(7,93,204,.22); }

.trust-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.trust-item { padding: 22px; border-left: 4px solid var(--cp-orange); border-radius: 0 16px 16px 0; background: rgba(255,255,255,.075); transition: transform .25s ease, background .25s ease; }
.trust-item:hover, .trust-item:focus-within { transform: translateY(-5px); background: rgba(255,255,255,.11); }
.trust-item strong { display: block; margin-bottom: 5px; }
.trust-item span { color: #cbd6e2; font-size: .9rem; }

.page-header { position: relative; isolation: isolate; overflow: hidden; padding: 78px 0 62px; color: #fff; background: linear-gradient(90deg,rgba(4,10,17,.96),rgba(5,31,51,.82)),url("assets/images/gravel-pedal.jpg") center 56%/cover no-repeat; }
.page-header::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(120deg,transparent 0 68%,rgba(22,191,253,.12) 68% 69%,transparent 69% 74%,rgba(255,90,31,.14) 74% 75%,transparent 75%); pointer-events: none; }
body.single .page-header { background-image: linear-gradient(90deg,rgba(4,10,17,.97),rgba(5,31,51,.76)),url("assets/images/road-pedal.jpg"); }
body.page-slug-road-cycling .page-header,
body.page-slug-clipless-pedals .page-header,
body.page-slug-power-meter-pedals .page-header,
body.page-slug-comparison-guides .page-header,
body.page-slug-product-reviews .page-header { background-image: linear-gradient(90deg,rgba(4,10,17,.97),rgba(5,31,51,.76)),url("assets/images/road-pedal.jpg"); }
body.page-slug-indoor-cycling .page-header { background-image: linear-gradient(90deg,rgba(4,10,17,.96),rgba(5,31,51,.78)),url("assets/images/indoor-pedal.jpg"); }
body.page-slug-gravel-mtb .page-header,
body.page-slug-cycling-shoes .page-header,
body.page-slug-commuting .page-header,
body.page-slug-beginner-guides .page-header,
body.page-slug-how-to-guides .page-header { background-image: linear-gradient(90deg,rgba(4,10,17,.96),rgba(5,31,51,.78)),url("assets/images/gravel-pedal.jpg"); }
.page-header h1 { max-width: 860px; margin: 8px 0 0; font-size: clamp(2.3rem,5vw,4.2rem); line-height: 1.04; letter-spacing: -.055em; }
.page-header p { max-width: 740px; margin: 16px 0 0; color: #d4dfeb; }
.breadcrumbs { margin: 0 0 14px; color: #becbdd; font-size: .79rem; }
.breadcrumbs a { color: #fff; }

.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; align-items: start; gap: 38px; padding: 56px 0 80px; }
.content-layout > article { min-width: 0; padding: clamp(24px,4vw,42px); border: 1px solid #dfe7ed; border-radius: 24px; background: #fff; box-shadow: 0 18px 54px rgba(7,35,58,.09); }
.entry-content { min-width: 0; }
.entry-content > * { max-width: var(--cp-reading); }
.entry-content > .alignwide { max-width: 1080px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--cp-navy); line-height: 1.2; letter-spacing: -.025em; }
.entry-content h2 { margin-top: 2.2em; font-size: 1.85rem; }
.entry-content h3 { margin-top: 1.8em; font-size: 1.35rem; }
.entry-content p, .entry-content li { color: #35465a; }
.entry-content blockquote { margin: 30px 0; padding: 20px 26px; border-left: 5px solid var(--cp-orange); background: var(--cp-cream); font-size: 1.08rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.entry-content > table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content th, .entry-content td { padding: 13px; border: 1px solid #d8e0e7; text-align: left; vertical-align: top; }
.entry-content th { color: #fff; background: linear-gradient(110deg,var(--cp-navy),#0b3f67); }
.wp-block-table { overflow-x: auto; }
.featured-image { position: relative; overflow: hidden; margin-bottom: 28px; border-radius: 20px; box-shadow: 0 18px 44px rgba(7,35,58,.16); }
.featured-image::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: linear-gradient(90deg,var(--cp-orange),var(--cp-cyan)); }
.featured-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; color: #627187; font-size: .83rem; }
.entry-meta a { color: inherit; }
.page-header .entry-meta, .page-header .entry-meta a { color: #dce7f2; }
.entry-footer { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--cp-gray); }
.tag-links a { display: inline-block; margin: 5px 5px 0 0; padding: 6px 11px; border: 1px solid #cfe0ed; border-radius: 999px; color: var(--cp-blue); background: #eef6ff; text-decoration: none; font-size: .78rem; font-weight: 800; }

.post-navigation { margin-top: 34px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.post-navigation a { display: block; height: 100%; padding: 17px 19px; border: 1px solid #d9e4ec; border-radius: 16px; color: var(--cp-navy); background: #f8fbfd; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.post-navigation a:hover { transform: translateY(-3px); border-color: rgba(7,93,204,.35); box-shadow: 0 12px 26px rgba(7,35,58,.09); }
.post-navigation span, .post-navigation strong { display: block; }
.post-navigation span { color: var(--cp-orange-dark); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.post-navigation strong { margin-top: 4px; }

.gear-specs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 28px 0; }
.gear-specs > div { padding: 16px; border: 1px solid #d9e4ec; border-radius: 15px; background: linear-gradient(135deg,#f8fbfd,#eef6ff); }
.gear-specs span, .gear-specs strong { display: block; }
.gear-specs span { color: var(--cp-mid); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.gear-specs strong { margin-top: 5px; color: var(--cp-navy); }
.gear-specs strong a { color: var(--cp-blue); text-decoration-thickness: 2px; }
.gear-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.gear-price-date { align-self: center; padding: 8px 12px; border-radius: 999px; color: #40536d; background: #edf4f9; font-size: .8rem; font-weight: 800; }
.gear-page-header .eyebrow { color: #ff9d78; }

.affiliate-note { margin: 28px 0; padding: 17px 20px; border: 1px solid #ffd0b9; border-radius: 12px; color: #70401f; background: #fff5ef; font-size: .88rem; }
.widget-area { position: sticky; top: 104px; }
.sidebar-card { position: relative; overflow: hidden; margin-bottom: 20px; padding: 24px; border: 1px solid #d9e3eb; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(7,35,58,.07); }
.sidebar-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--cp-orange),var(--cp-cyan)); }
.sidebar-card h2, .sidebar-card h3 { margin: 0 0 14px; color: var(--cp-navy); font-size: 1.05rem; }
.sidebar-card ul { margin: 0; padding-left: 19px; }
.sidebar-card li { margin: 8px 0; }
.sidebar-card a { color: #40536d; font-size: .9rem; }

.archive-grid { padding: 50px 0 82px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 36px; }
.pagination a, .pagination span { min-width: 42px; padding: 9px 13px; border: 1px solid #ccd9e4; border-radius: 11px; text-align: center; text-decoration: none; background: #fff; box-shadow: 0 6px 16px rgba(7,35,58,.05); }
.pagination a:hover { color: #fff; border-color: var(--cp-blue); background: var(--cp-blue); }
.pagination .current { color: #fff; border-color: var(--cp-blue); background: var(--cp-blue); }

.search-form { display: flex; width: 100%; gap: 8px; }
.search-field { width: 100%; min-height: 50px; padding: 11px 15px; border: 1px solid #b9c9d7; border-radius: 12px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.search-field:focus { outline: 0; border-color: var(--cp-cyan); box-shadow: 0 0 0 4px rgba(22,191,253,.16); }
.search-submit { min-height: 50px; padding: 10px 19px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(110deg,var(--cp-blue),var(--cp-blue-dark)); font-weight: 850; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.search-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7,93,204,.25); }
.empty-state { padding: 42px; border: 1px dashed #9fb8ca; border-radius: var(--cp-radius); text-align: center; background: #fff; box-shadow: 0 16px 42px rgba(7,35,58,.07); }
.error-404 { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px,11vw,145px) 0; text-align: center; background: linear-gradient(rgba(244,247,250,.94),rgba(244,247,250,.98)),url("assets/images/indoor-pedal.jpg") center/cover no-repeat; }
.error-code { margin: 0; color: var(--cp-orange-dark); font-size: clamp(5rem,14vw,10rem); font-weight: 900; line-height: .8; letter-spacing: -.09em; }
.error-404 h1 { margin: 22px 0 10px; color: var(--cp-navy); font-size: clamp(2rem,5vw,3.7rem); }
.error-404 .search-form { max-width: 650px; margin: 28px auto; }

.archive-description { max-width: 740px; color: #d6e3ed; }
.archive-description p { margin: 16px 0 0; }
.cp-grid > .empty-state { grid-column: 1 / -1; }

.comments-area { margin-top: 42px; padding-top: 32px; border-top: 1px solid #dfe6ec; }
.comments-area h2, .comment-reply-title { color: var(--cp-navy); }
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-list li { margin: 16px 0; padding: 20px; border: 1px solid #dce5ec; border-radius: 16px; background: #f8fbfd; }
.comment-list .children { margin-left: 22px; padding-left: 0; list-style: none; }
.comment-meta { color: var(--cp-mid); font-size: .82rem; }
.comment-form label { display: block; margin-bottom: 6px; color: var(--cp-navy); font-weight: 800; }
.comment-form input:not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #b9c9d7; border-radius: 12px; background: #fff; }
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--cp-cyan); box-shadow: 0 0 0 4px rgba(22,191,253,.16); }
.comment-form .submit { min-height: 48px; padding: 11px 20px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(110deg,var(--cp-blue),var(--cp-blue-dark)); font-weight: 850; cursor: pointer; }

.entry-content .wp-block-button__link { color: #fff; background: linear-gradient(110deg,var(--cp-blue),var(--cp-blue-dark)); font-weight: 800; box-shadow: 0 9px 22px rgba(7,93,204,.2); }
.entry-content .wp-block-group, .entry-content .wp-block-columns { border-radius: 18px; }
.entry-content .wp-block-cover { overflow: hidden; border-radius: 20px; }
.entry-content hr, .entry-content .wp-block-separator { border-color: #dfe6ec; }

.entry-content label { color: var(--cp-navy); font-weight: 800; }
.entry-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.entry-content select,
.entry-content textarea { width: 100%; min-height: 49px; padding: 11px 14px; border: 1px solid #b9c9d7; border-radius: 12px; color: var(--cp-ink); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.entry-content textarea { min-height: 145px; resize: vertical; }
.entry-content input:focus,
.entry-content select:focus,
.entry-content textarea:focus { outline: 0; border-color: var(--cp-cyan); box-shadow: 0 0 0 4px rgba(22,191,253,.16); }
.entry-content button,
.entry-content input[type="submit"],
.entry-content input[type="button"] { min-height: 48px; padding: 11px 20px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(110deg,var(--cp-blue),var(--cp-blue-dark)); box-shadow: 0 9px 22px rgba(7,93,204,.2); font-weight: 850; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.entry-content button:hover,
.entry-content input[type="submit"]:hover,
.entry-content input[type="button"]:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(7,93,204,.3); }
.entry-content .wpcf7-not-valid-tip,
.entry-content .wpforms-error { color: #9f241d; font-size: .82rem; font-weight: 700; }
.entry-content .wpcf7-response-output,
.entry-content .wpforms-confirmation-container { padding: 14px 17px; border: 1px solid #c7d8e5; border-radius: 12px; background: #f5faff; }
.home-editorial-content .entry-content { padding: clamp(22px,4vw,38px); border: 1px solid #dce5ec; border-radius: 22px; background: #fff; box-shadow: 0 16px 44px rgba(7,35,58,.08); }

.site-footer { padding: 68px 0 26px; color: #d8e3ec; background: radial-gradient(circle at 90% 5%,rgba(7,93,204,.28),transparent 25%),linear-gradient(135deg,#050911,#08243b); }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3,1fr); gap: 40px; }
.footer-brand { max-width: 350px; }
.footer-brand .site-title a { color: #fff; }
.footer-brand p { color: #aebdce; font-size: .9rem; }
.footer-column h2 { margin: 0 0 15px; color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .09em; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin: 8px 0; }
.footer-column a { color: #b9c7d6; text-decoration: none; font-size: .9rem; }
.footer-column a:hover { color: #fff; }
.site-info { display: flex; justify-content: space-between; gap: 24px; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #8fa1b6; font-size: .78rem; }

.cp-motion-ready .cp-reveal { opacity: 0; transform: translateY(24px); }
.cp-motion-ready .cp-reveal.is-revealed { opacity: 1; transform: translateY(0); transition: opacity .65s ease var(--cp-reveal-delay,0ms), transform .65s cubic-bezier(.2,.72,.2,1) var(--cp-reveal-delay,0ms); }

@keyframes cp-orbit { to { transform: translate(-26px,28px) scale(1.05); } }
@keyframes cp-grid-drift { to { background-position: 84px 42px; } }
@keyframes cp-panel-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes cp-pulse { 0% { box-shadow: 0 0 0 0 rgba(69,224,168,.34); } 72%,100% { box-shadow: 0 0 0 10px rgba(69,224,168,0); } }

@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-navigation { position: fixed; inset: 77px 0 auto; max-height: calc(100vh - 77px); overflow-y: auto; padding: 18px; background: rgba(7,11,18,.99); border-bottom: 1px solid rgba(22,191,253,.16); transform: translateY(-130%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
  .admin-bar .main-navigation { inset-block-start: 109px; max-height: calc(100vh - 109px); }
  .main-navigation.is-open { transform: translateY(0); visibility: visible; }
  .main-navigation ul { align-items: stretch; flex-direction: column; }
  .main-navigation .sub-menu, .main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { position: static; display: flex; width: auto; margin: 4px 0 4px 18px; padding: 4px 0 4px 10px; border-width: 0 0 0 2px; border-radius: 0; background: transparent; box-shadow: none; }
  .main-navigation a { padding: 13px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 690px; }
  .cp-grid--4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .content-layout { grid-template-columns: 1fr; }
  .widget-area { position: static; }
  .widget-area { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .main-navigation { inset-block-start: 123px; max-height: calc(100vh - 123px); }
  .site-description { display: none; }
  .cp-grid--3, .cp-grid--4, .trust-strip, .footer-grid, .widget-area { grid-template-columns: 1fr; }
  .footer-grid > :last-child { grid-column: auto; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .hero-panel { padding: 20px; }
  .content-layout { gap: 26px; padding-top: 38px; }
  .content-layout > article { padding: 22px; border-radius: 19px; }
  .post-navigation .nav-links, .gear-specs { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .site-info { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
