:root {
	--oeg-navy: #10232d;
	--oeg-orange: #f28b24;
	--oeg-white: #fff;
	--oeg-soft: #f2f6f8;
	--oeg-line: #d9e4e9;
	--oeg-muted: #60727c;
}

/* OEG Tools owns its content canvas, independently of the active theme sidebar. */
.oeg-tools-page #sidebar { display: none !important; }
.oeg-tools-page .full-head-img { display: none; }
.oeg-tools-page article.col-md-9 {
	float: none;
	left: auto;
	width: 100%;
	margin-inline: auto;
}
.oeg-tools-page .main-content-page,
.oeg-tools-page .single-entry-summary { width: 100%; }

.oeg-tools-directory,
.oeg-calculator {
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(32px, 6vw, 76px) 20px;
	color: var(--oeg-navy);
}
.oeg-tools-heading { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.oeg-tools-heading > span {
	display: inline-block;
	color: #a94f06;
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 900;
	letter-spacing: .06em;
	line-height: 1;
	text-transform: uppercase;
}
.oeg-tool-category { color: #a94f06; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; }
.oeg-tools-heading h1,
.oeg-calculator h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.035em; margin: 14px 0 16px; }
.oeg-tools-heading p { color: var(--oeg-muted); font-size: 18px; line-height: 1.65; }
.oeg-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.oeg-directory-controls { margin: 0 auto 28px; max-width: 980px; }
.oeg-directory-controls > input { width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid var(--oeg-line); border-radius: 9px; font: inherit; color: var(--oeg-navy); background: #fff; }
.oeg-category-filters { display: flex; gap: 8px; margin-top: 14px; justify-content: center; flex-wrap: wrap; }
.oeg-category-filters button { min-height: 42px; padding: 8px 15px; border: 1px solid var(--oeg-line); border-radius: 8px; background: #fff; color: var(--oeg-navy); font-weight: 750; cursor: pointer; }
.oeg-category-filters button.is-active { background: var(--oeg-navy); border-color: var(--oeg-navy); color: #fff; }
.oeg-tool-card[hidden] { display: none; }
.oeg-no-tools { text-align: center; color: var(--oeg-muted); padding: 30px; }
.oeg-tool-card { display: flex; flex-direction: column; min-height: 260px; padding: 26px; border: 1px solid var(--oeg-line); border-radius: 18px; background: var(--oeg-white); color: var(--oeg-navy) !important; text-decoration: none !important; box-shadow: 0 10px 30px #10232d0d; transition: .2s; }
.oeg-tool-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px #10232d1a; }
.oeg-tool-card h2 { font-size: 20px; margin: 12px 0 8px; }
.oeg-tool-card p { color: var(--oeg-muted); line-height: 1.6; }
.oeg-tool-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--oeg-navy); color: var(--oeg-white); font-size: 26px; margin-bottom: 18px; }
.oeg-tool-link { margin-top: auto; color: #a94f06; font-weight: 800; }
.oeg-calculator > header { max-width: 820px; margin: 0 auto 28px; text-align: center; }
.oeg-calculator > header p { font-size: 18px; color: var(--oeg-muted); }
.oeg-calculator-form,
.oeg-result,
.oeg-tool-intro,
.oeg-tool-faq { background: #fff; border: 1px solid var(--oeg-line); border-radius: 18px; padding: clamp(20px, 4vw, 34px); box-shadow: 0 12px 35px #10232d0d; }
.oeg-input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.oeg-field { display: grid; grid-template-columns: 1fr auto; gap: 7px; color: var(--oeg-navy); font-weight: 700; }
.oeg-field > span { grid-column: 1 / -1; }
.oeg-field input,
.oeg-field select { width: 100%; min-height: 48px; border: 1px solid var(--oeg-line); border-radius: 10px; padding: 10px 13px; background: #fff; color: var(--oeg-navy); font: inherit; }
.oeg-field input:focus,
.oeg-field select:focus { outline: 3px solid #f28b2428; border-color: var(--oeg-orange); }
.oeg-field small { align-self: center; color: var(--oeg-muted); }
.oeg-calculate { margin-top: 24px; border: 0; border-radius: 10px; padding: 14px 28px; background: var(--oeg-orange); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; }
.oeg-calculate:hover { background: #d87417; }
.oeg-result { margin-top: 22px; border-left: 5px solid var(--oeg-orange); }
.oeg-result h2 { margin-top: 0; }
.oeg-result-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.oeg-result-values > div { display: flex; justify-content: space-between; gap: 15px; padding: 13px; background: var(--oeg-soft); border-radius: 9px; }
.oeg-result-values span { color: var(--oeg-muted); }
.oeg-explanation { margin: 20px 0; color: var(--oeg-muted); line-height: 1.65; }
.oeg-recommendation { display: inline-block; padding: 12px 18px; border-radius: 9px; background: var(--oeg-navy); color: #fff !important; text-decoration: none !important; font-weight: 800; }
.oeg-disclaimer { padding: 16px 18px; border-radius: 10px; background: #fff4e8; color: #75400d; border: 1px solid #f8d4ae; margin-top: 20px; }
.oeg-tool-intro,
.oeg-tool-faq { max-width: 1140px; margin: 30px auto; line-height: 1.7; }
.oeg-tool-faq { margin-bottom: 50px; }

/* Cable calculator: deliberate, compact e-commerce UI. */
.oeg-cable-calculator { max-width: 1040px; }
.oeg-cable-calculator .oeg-calculator-form { padding: 0; overflow: hidden; }
.oeg-step { padding: 26px 30px; border-bottom: 1px solid var(--oeg-line); }
.oeg-step-title { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.oeg-step-title > span { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--oeg-navy); color: #fff; font-weight: 850; }
.oeg-step-title h2 { margin: 2px 0 3px; font-size: 20px; }
.oeg-step-title p { margin: 0; color: var(--oeg-muted); font-size: 14px; }
.oeg-segmented, .oeg-drop-presets { display: flex; gap: 10px; flex-wrap: wrap; }
.oeg-segmented label, .oeg-drop-presets > label:not(.oeg-custom-drop) { flex: 1 1 220px; cursor: pointer; }
.oeg-segmented input, .oeg-drop-presets input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.oeg-segmented label > span, .oeg-drop-presets label > span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 10px 15px; border: 1px solid var(--oeg-line); border-radius: 9px; background: #fff; }
.oeg-segmented input:checked + span, .oeg-drop-presets input:checked + span { border-color: var(--oeg-orange); box-shadow: inset 0 0 0 1px var(--oeg-orange); background: #fff8f1; }
.oeg-mode { display: flex; gap: 18px; margin-bottom: 15px; font-weight: 750; }
.oeg-inline-fields { max-width: 520px; }
.oeg-input-unit { display: flex; width: 100%; border: 1px solid var(--oeg-line); border-radius: 9px; overflow: hidden; background: #fff; }
.oeg-input-unit input { border: 0 !important; border-radius: 0 !important; min-width: 0; }
.oeg-input-unit select, .oeg-input-unit em { width: auto; min-width: 70px; border: 0; border-left: 1px solid var(--oeg-line); border-radius: 0; display: grid; place-items: center; padding: 0 12px; background: var(--oeg-soft); color: var(--oeg-muted); font-style: normal; }
.oeg-custom-drop { flex: 0 0 140px; }
.oeg-advanced { padding: 20px 30px; border-bottom: 1px solid var(--oeg-line); }
.oeg-advanced summary, .oeg-how summary { color: var(--oeg-navy); font-weight: 800; cursor: pointer; }
.oeg-advanced[open] summary { margin-bottom: 18px; }
.oeg-cable-calculator .oeg-calculate { margin: 22px 30px 28px; min-height: 52px; }
.oeg-form-error { margin: 20px 30px 0; padding: 13px 15px; border: 1px solid #e7a4a4; background: #fff2f2; color: #8b1e1e; border-radius: 8px; }
.oeg-tooltip { position: relative; display: inline-grid; place-items: center; width: 21px; height: 21px; padding: 0; border: 1px solid #9cafb8; border-radius: 50%; background: #fff; color: #536771; font-size: 12px; font-weight: 850; cursor: help; vertical-align: middle; }
.oeg-tooltip.is-open:after, .oeg-tooltip:hover:after, .oeg-tooltip:focus:after { content: attr(data-tooltip); position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 240px; padding: 9px 11px; border-radius: 7px; background: var(--oeg-navy); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.4; }
.oeg-result-hero { padding-bottom: 24px; border-bottom: 1px solid var(--oeg-line); text-align: center; }
.oeg-result-hero > span { color: var(--oeg-muted); font-weight: 750; }
.oeg-main-section { display: block; margin: 5px 0; color: var(--oeg-navy); font-size: clamp(44px, 8vw, 72px); line-height: 1; }
.oeg-result-summary { margin: 8px 0 0; color: var(--oeg-muted); }
.oeg-cable-result .oeg-result-values { margin-top: 24px; }
.oeg-ampacity-note { margin: 18px 0 28px; padding: 13px 15px; border-left: 3px solid var(--oeg-orange); background: #fff8f1; color: #70400f; line-height: 1.55; }
.oeg-cable-result h2 { margin-top: 28px; font-size: 22px; }
.oeg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.oeg-table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; }
.oeg-table-wrap th, .oeg-table-wrap td { padding: 12px; border-bottom: 1px solid var(--oeg-line); text-align: left; }
.oeg-table-wrap th { background: var(--oeg-soft); color: var(--oeg-muted); font-size: 13px; }
.oeg-table-wrap tr.is-recommended { background: #fff7ed; font-weight: 800; }
.oeg-rating { white-space: nowrap; }
.oeg-how { margin-top: 28px; padding-top: 2px; border-top: 1px solid var(--oeg-line); }
.oeg-calculation-details { margin-top: 13px; padding: 14px; background: var(--oeg-soft); border-radius: 8px; color: var(--oeg-muted); }
.oeg-result-actions { display: flex; align-items: center; gap: 13px; margin: 24px 0; }
.oeg-copy-result { min-height: 44px; padding: 9px 15px; border: 1px solid var(--oeg-navy); border-radius: 8px; background: #fff; color: var(--oeg-navy); font-weight: 800; cursor: pointer; }
.oeg-copy-status { color: var(--oeg-muted); font-size: 14px; }
.oeg-products { margin-top: 20px; padding: 22px; background: var(--oeg-soft); border-radius: 10px; }
.oeg-products h2 { margin-top: 0; }
.oeg-no-mapping { margin-bottom: 0; color: var(--oeg-muted); }

@media (max-width: 850px) { .oeg-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.oeg-tools-directory,
	.oeg-calculator { padding-left: 12px; padding-right: 12px; }
	.oeg-tools-grid,
	.oeg-input-grid,
	.oeg-result-values { grid-template-columns: 1fr; }
	.oeg-tool-card { min-height: 230px; padding: 21px; }
	.oeg-calculator-form,
	.oeg-result { padding: 20px 15px; }
	.oeg-cable-calculator .oeg-calculator-form { padding: 0; }
	.oeg-step { padding: 22px 16px; }
	.oeg-advanced { padding: 18px 16px; }
	.oeg-cable-calculator .oeg-calculate { width: calc(100% - 32px); margin: 20px 16px 24px; padding-inline: 12px; }
	.oeg-form-error { margin: 16px 16px 0; }
	.oeg-segmented label { flex-basis: 100%; }
	.oeg-category-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; }
	.oeg-category-filters button { flex: 0 0 auto; }
	.oeg-result-values > div { align-items: flex-start; flex-direction: column; gap: 4px; }
}
