/* OutdoorBudget – Water Sports Calculators */
.obws {
	--obws-blue: #0e6589;
	--obws-blue-dark: #0b3d56;
	--obws-blue-soft: #e6f3f8;
	--obws-accent: #e2702b;
	--obws-accent-soft: #fff1e8;
	--obws-text: #15252e;
	--obws-muted: #556873;
	--obws-border: #d2e2ea;
	--obws-bg: #ffffff;
	--obws-soft: #f4f8fa;
	--obws-danger: #b3261e;
	--obws-radius: 14px;
	--obws-shadow: 0 1px 2px rgba(10, 35, 50, .06), 0 6px 20px rgba(10, 35, 50, .06);
	color: var(--obws-text);
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}
.obws *, .obws *::before, .obws *::after { box-sizing: border-box; }
.obws-calc {
	background: var(--obws-bg);
	border: 1px solid var(--obws-border);
	border-radius: var(--obws-radius);
	box-shadow: var(--obws-shadow);
	padding: 20px;
	margin: 0 0 2em;
	max-width: 100%;
	overflow: hidden;
}

/* Header */
.obws-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.obws-head__icon {
	flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px;
	background: var(--obws-blue-soft); display: grid; place-items: center; font-size: 26px;
}
.obws .obws-head__title { font-size: 1.35rem; font-weight: 700; margin: 0 0 2px; line-height: 1.25; color: var(--obws-blue-dark); }
.obws .obws-head__sub { margin: 0; color: var(--obws-muted); font-size: .95rem; }
.obws .obws-head__sub strong { color: var(--obws-text); font-weight: 600; }

/* Layout: stacked on phones, form + sticky results on wide screens */
.obws-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 960px) {
	.obws-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); align-items: start; }
	.obws-results { position: sticky; top: 90px; }
}

/* Sections & fields */
.obws .obws-section {
	border: 1px solid var(--obws-border); border-radius: 12px; padding: 14px 14px 4px;
	margin: 0 0 14px; background: var(--obws-soft); min-width: 0;
}
.obws .obws-section legend {
	font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
	color: var(--obws-blue); padding: 0 6px; margin: 0; width: auto; border: 0; float: none;
}
.obws-fields { display: grid; gap: 12px 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.obws-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; min-width: 0; }
.obws .obws-field > label { font-weight: 600; font-size: .92rem; margin: 0; color: var(--obws-text); line-height: 1.3; }
.obws-input {
	display: flex; align-items: stretch; background: #fff; border: 1px solid var(--obws-border);
	border-radius: 10px; overflow: hidden; transition: border-color .15s, box-shadow .15s; min-height: 44px;
}
.obws-input:focus-within { border-color: var(--obws-blue); box-shadow: 0 0 0 3px rgba(14, 101, 137, .15); }
.obws .obws-input input,
.obws .obws-input select {
	flex: 1 1 auto; min-width: 0; width: 100%; border: 0 !important; outline: 0; box-shadow: none !important;
	background: transparent; padding: 9px 11px; margin: 0; font: inherit; font-size: 16px; color: var(--obws-text);
	height: auto; min-height: 42px; border-radius: 0;
}
.obws .obws-input--unit select {
	flex: 0 0 auto; width: auto; max-width: 52%; border-left: 1px solid var(--obws-border) !important;
	background: var(--obws-soft); font-size: 14px; padding-right: 6px; cursor: pointer;
}
.obws-affix {
	display: flex; align-items: center; padding: 0 10px; color: var(--obws-muted); background: var(--obws-soft);
	font-size: .9rem; white-space: nowrap;
}
.obws-affix:first-child { border-right: 1px solid var(--obws-border); }
.obws-affix:last-child { border-left: 1px solid var(--obws-border); }
.obws .obws-help { color: var(--obws-muted); font-size: .8rem; line-height: 1.35; }
.obws .obws-help--block { display: block; margin: 4px 0 10px; }
.obws input[type=number]::-webkit-inner-spin-button { opacity: .5; }

/* Switch */
.obws-field--check { justify-content: center; }
.obws .obws-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .92rem; margin: 0; min-height: 44px; }
.obws .obws-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.obws-switch__ui {
	flex: 0 0 42px; width: 42px; height: 24px; border-radius: 99px; background: #c2d2da; position: relative; transition: background .15s;
}
.obws-switch__ui::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
	background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.obws-switch input:checked + .obws-switch__ui { background: var(--obws-blue); }
.obws-switch input:checked + .obws-switch__ui::after { transform: translateX(18px); }
.obws-switch input:focus-visible + .obws-switch__ui { box-shadow: 0 0 0 3px rgba(14, 101, 137, .3); }
.obws-is-off { opacity: .45; }

/* Buttons */
.obws .obws-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px;
	padding: 8px 16px; border-radius: 10px; border: 1px solid var(--obws-blue); background: var(--obws-blue);
	color: #fff; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; line-height: 1.2;
	text-transform: none; letter-spacing: normal; box-shadow: none; text-decoration: none;
}
.obws .obws-btn:hover { background: var(--obws-blue-dark); border-color: var(--obws-blue-dark); color: #fff; }
.obws .obws-btn--ghost { background: #fff; color: var(--obws-blue); }
.obws .obws-btn--ghost:hover { background: var(--obws-blue-soft); color: var(--obws-blue-dark); }
.obws .obws-btn--add { margin: 4px 0 12px; }
.obws .obws-btn--icon { min-height: 36px; padding: 4px 10px; border-color: var(--obws-border); background: #fff; color: var(--obws-danger); }
.obws .obws-btn--icon:hover { background: #fdecea; color: var(--obws-danger); border-color: var(--obws-danger); }
.obws-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Results */
.obws-results {
	background: var(--obws-blue-dark); color: #fff; border-radius: var(--obws-radius); padding: 18px;
	min-width: 0;
}
.obws-results .obws-muted { color: rgba(255, 255, 255, .75); }
.obws .obws-total { margin: 0 0 4px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .8); font-weight: 700; }
.obws .obws-total__value { font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 800; line-height: 1.1; margin: 0 0 4px; color: #fff; word-break: break-word; }
.obws .obws-total__sub { margin: 0 0 14px; color: #ffe1c7; font-weight: 600; }
.obws-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.obws-stat { background: rgba(255, 255, 255, .09); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.obws-stat__label { display: block; font-size: .75rem; color: rgba(255, 255, 255, .75); line-height: 1.25; }
.obws-stat__value { display: block; font-size: 1.08rem; font-weight: 700; color: #fff; word-break: break-word; }
.obws .obws-h { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin: 14px 0 8px; font-weight: 700; }
.obws-bars { list-style: none; margin: 0; padding: 0; }
.obws-bars li { margin: 0 0 8px; padding: 0; font-size: .88rem; }
.obws-bars__row { display: flex; justify-content: space-between; gap: 8px; }
.obws-bars__track { height: 7px; background: rgba(255, 255, 255, .13); border-radius: 99px; margin-top: 3px; overflow: hidden; }
.obws-bars__fill { height: 100%; background: #ffb070; border-radius: 99px; }
.obws .obws-rtable { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 0; }
.obws .obws-rtable th, .obws .obws-rtable td { padding: 6px 4px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); text-align: left; background: transparent; color: #fff; }
.obws .obws-rtable th { font-weight: 600; color: rgba(255, 255, 255, .75); font-size: .78rem; }
.obws .obws-rtable td:last-child, .obws .obws-rtable th:last-child { text-align: right; }
.obws .obws-list { margin: 0; padding: 0 0 0 18px; font-size: .9rem; }
.obws .obws-list li { margin: 0 0 4px; }
.obws .obws-callout { background: rgba(255, 255, 255, .1); border-left: 3px solid #ffb070; padding: 9px 11px; border-radius: 8px; font-size: .9rem; margin: 12px 0 0; }
.obws .obws-error { background: #fdecea; color: var(--obws-danger); border-radius: 8px; padding: 10px 12px; font-weight: 600; margin: 0; }
.obws-results__foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.obws-results .obws-btn { background: #fff; color: var(--obws-blue-dark); border-color: #fff; }
.obws-results .obws-btn:hover { background: var(--obws-blue-soft); color: var(--obws-blue-dark); }
.obws-results .obws-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.obws-results .obws-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.obws .obws-note { font-size: .8rem; color: rgba(255, 255, 255, .7); margin: 10px 0 0; }
.obws-calc > .obws-note, .obws noscript .obws-note { color: var(--obws-muted); }

/* Cards */
.obws-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 1.5em 0; }
.obws .obws-card {
	display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--obws-border); border-radius: var(--obws-radius);
	background: #fff; text-decoration: none; color: var(--obws-text); box-shadow: var(--obws-shadow); transition: transform .15s, border-color .15s;
}
.obws .obws-card:hover { transform: translateY(-2px); border-color: var(--obws-blue); color: var(--obws-text); }
.obws-card__icon { font-size: 28px; line-height: 1; }
.obws-card__title { font-weight: 700; font-size: 1.05rem; color: var(--obws-blue-dark); }
.obws-card__text { color: var(--obws-muted); font-size: .92rem; flex: 1; }
.obws-card__cta { color: var(--obws-accent); font-weight: 700; font-size: .9rem; }
.obws-related { margin: 2.5em 0 1em; }
.obws .obws-related__title { margin: 0 0 .2em; }
.obws .obws-related__all a { color: var(--obws-blue); font-weight: 700; }

/* Article */
.obws-article { max-width: 860px; margin: 0 auto; line-height: 1.7; }
.obws-article h2 { margin-top: 1.8em; }
.obws-article h3 { margin-top: 1.4em; }
.obws-article table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; display: block; overflow-x: auto; }
.obws-article table th, .obws-article table td { border: 1px solid #d2e2ea; padding: 8px 10px; text-align: left; vertical-align: top; }
.obws-article table th { background: #e6f3f8; }
.obws-article .obws-tip { background: #fff1e8; border-left: 4px solid #e2702b; padding: 12px 16px; border-radius: 8px; margin: 1.2em 0; }
.obws-article .obws-formula { background: #f4f8fa; border: 1px dashed #b3cad6; padding: 12px 16px; border-radius: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95rem; overflow-x: auto; }
.obws-article .obws-kw { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1em 0; }
.obws-article .obws-kw li { background: #e6f3f8; color: #0b3d56; border-radius: 99px; padding: 4px 12px; font-size: .88rem; margin: 0; }
.obws-faq__item { border: 1px solid #d2e2ea; border-radius: 10px; margin: 0 0 10px; background: #fff; }
.obws-faq__item summary { cursor: pointer; padding: 12px 16px; font-weight: 700; list-style-position: inside; }
.obws-faq__a { padding: 0 16px 6px; }

/* Small phones */
@media (max-width: 480px) {
	.obws-calc { padding: 14px; border-radius: 12px; }
	.obws .obws-section { padding: 12px 10px 2px; }
	.obws-fields { grid-template-columns: 1fr; }
	.obws-stats { grid-template-columns: 1fr 1fr; }
	.obws-head__icon { flex-basis: 40px; width: 40px; height: 40px; font-size: 22px; }
}

/* Print: results only */
@media print {
	.obws-form, .obws-results__foot, .obws-related { display: none !important; }
	.obws-results { background: #fff !important; color: #000 !important; }
	.obws-results * { color: #000 !important; }
}
