/* Driver Distance from Swing Speed: the look of the site's other calculators (the Dogleg Strategy Calculator's card,
   sliders, green pills and number tiles), scoped to .dgc so nothing on the page changes. */
.dgc, .dgc * { box-sizing: border-box; font-family: inherit; }
.dgc::before, .dgc::after, .dgc *::before, .dgc *::after { content: none !important; background: none !important; box-shadow: none !important; }
.dgc { margin: 20px 0; }
.dgc-card { background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.06); overflow: hidden; position: relative; }
.dgc-title { padding: 14px 16px 4px; margin: 0; color: #102a17; font-size: 1.05rem; line-height: 1.25; font-weight: 700; }
.dgc-units { display: inline-flex; margin: 8px 16px 0; padding: 3px; border-radius: 999px; background: #e9efe9; }
.dgc-unit { border: 0; background: transparent; color: #173b23; font: inherit; font-size: .86rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; min-height: 32px; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.2; box-shadow: none !important; }
/* the theme's own button and link styles (uppercase, tracked, underlined) kept off the calculator */
.dgc a.dgc-btn, .dgc-btn { text-transform: none !important; letter-spacing: 0 !important; }
.dgc-unit[aria-pressed="true"] { background: #0b5d2a; color: #fff; }
.dgc-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 18px; padding: 16px; }
.dgc-row { margin-bottom: 18px; }
.dgc-row label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; color: #173b23; }
.dgc-row label small { font-weight: 600; color: #4f6455; margin-right: auto; }
.dgc .pill { background: #0b5d2a; color: #fff; border-radius: 999px; font-size: .86rem; padding: 2px 10px; white-space: nowrap; }
.dgc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: #e9efe9; outline: none; }
.dgc input[type=range]:focus-visible { box-shadow: 0 0 0 3px rgba(11,93,42,.3) !important; }
.dgc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #0b5d2a; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.dgc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #0b5d2a; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.dgc-kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 6px; }
.dgc .kpi { border: 1px solid #e6eee6; background: #f8fbf8; border-radius: 12px; padding: 12px; color: #173b23; }
.dgc .kpi small { color: #4f6455; font-weight: 600; }
.dgc .kpi-num { display: block; font-size: 1.25rem; color: #0e3d22; }
.dgc-badge { margin-top: 10px; }
.dgc .badge-pill { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 700; background: rgba(11,93,42,.14); color: #0b5d2a; border: 1px solid #0b5d2a33; }
.dgc-plot { position: relative; height: 260px; }
.dgc-chart { background: #fff; border: 1px solid #eef3ee; border-radius: 12px; padding: 10px; }
.dgc .legend-note { display: block; color: #4f5560; margin-top: 6px; line-height: 1.45; }
.dgc .legend-note a, .dgc-small a { color: #0b5d2a; text-decoration: underline; }
.dgc-next { border-top: 1px solid #eef3ee; padding: 14px 16px 16px; }
.dgc-next-title { margin: 0 0 10px; font-weight: 700; color: #173b23; }
.dgc-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.dgc-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: #0b5d2a; color: #fff !important; font-weight: 700; text-decoration: none !important; border: 2px solid #0b5d2a; }
.dgc-btn:hover, .dgc-btn:focus-visible { background: #084a21; border-color: #084a21; }
.dgc-btn-line { background: transparent; color: #0b5d2a !important; }
.dgc-btn-line:hover, .dgc-btn-line:focus-visible { background: rgba(11,93,42,.08); }
.dgc-small { margin: 10px 0 0; font-size: .9rem; color: #4f5560; }
@media (max-width: 900px) { .dgc-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .dgc-kpis { gap: 8px; } .dgc .kpi { padding: 10px 8px; font-size: .9rem; } .dgc .kpi-num { font-size: 1.1rem; } .dgc-row label small { display: none; } .dgc-btn { width: 100%; justify-content: center; } }
