/*
 * Fittergy Academy on Bootstrap 5.3 (responsive/fittergy_academy, JP 2026-11-08).
 * The site moved from Foundation 6 to Bootstrap 5.3.8 (served from responsive/ui/). JP: "near identical, apart from
 * differences in Bootstrap vs Foundation". This file restores the old Foundation theme on top of Bootstrap; the values
 * were measured on the live Foundation site (Raleway, body #616161, headings #134053, buttons #fbbc43 with square
 * corners, 1200px container with 15px gutters, hover dropdown menu). Loaded after bootstrap.min.css and css/app.css.
 * The site's own utility classes (.padding, .white, .purple, .footer, ...) stay in css/app.css.
 */

:root {
	--bs-body-font-family: 'Raleway', sans-serif;
	--bs-body-font-size: 1rem;
	--bs-body-line-height: 2;
	--bs-body-color: #616161;
	--bs-body-bg: #fefefe;
	--bs-link-color: #616161;
	--bs-link-color-rgb: 97, 97, 97;
	--bs-link-hover-color: #616161;
	--bs-link-hover-color-rgb: 97, 97, 97;
	--bs-border-radius: 0;
}

body { font-family: 'Raleway', sans-serif; color: #616161; background: #fefefe; line-height: 2; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }

h1, h2, h3, h4, h5, h6 { font-family: 'Raleway', sans-serif; font-weight: 700; color: #134053; line-height: 1.4; margin: 0 0 .5rem; }
h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 22px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }
p { margin: 0 0 1rem; line-height: 2; }
ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; line-height: 1.6; }
small, .small { font-size: 80%; }
b, strong { font-weight: bold; }
table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
td, th { padding: 8px 10px 10px; }
label { color: #0a0a0a; font-size: 16px; font-weight: 700; line-height: 1.8; }

/* Grid: Foundation .grid-container = fluid up to 1200px with 15px side padding; .grid-padding-x = 15px per column. */
.container { max-width: 1200px; --bs-gutter-x: 30px; }
.row.academy-gx { --bs-gutter-x: 30px; }

/* Buttons (Foundation .button): orange default, grey for the old ".button primary", square, 14px. */
.btn { font-family: 'Raleway', sans-serif; font-size: 14px; line-height: 1; padding: 11.9px 14px; border-radius: 0; border: 1px solid transparent; margin: 0 0 1rem; }
.btn-academy { background: #fbbc43; color: #fff; }
.btn-academy:hover, .btn-academy:focus { background: #f5a816; color: #fff; }
.btn-academy-grey { background: #aaaaaa; color: #fff; }
.btn-academy-grey:hover, .btn-academy-grey:focus { background: #919191; color: #fff; }
.btn-secondary { background: #767676; border-color: transparent; color: #fff; }
.btn-lg { font-size: 1.25rem; }

/* Callout (Foundation) has no Bootstrap twin: kept as our own class. */
.callout { position: relative; margin: 0 0 1rem; padding: 16px 15px; border: 1px solid rgba(10, 10, 10, .25); background: #fff; color: #0a0a0a; }
.callout.primary { background: #fef5e3; }
.callout.secondary { background: #eaeaea; }
.callout.success { background: #e1faea; }
.callout.warning { background: #fff3d9; }
.callout.alert { background: #f7e4e1; }

/* Form fields: Foundation styles bare inputs; Bootstrap only styles .form-control, so the bare fields get the old look. */
input[type=text], input[type=email], input[type=number], input[type=tel], input[type=password], input[type=date], input[type=search], select, textarea {
	display: block; box-sizing: border-box; width: 100%; height: 39px; margin: 0 0 1rem; padding: 8px;
	border: 1px solid #cacaca; border-radius: 0; background-color: #fefefe; color: #0a0a0a;
	box-shadow: inset 0 1px 2px rgba(10, 10, 10, .1); font-family: inherit; font-size: 14px; line-height: 1.5;
}
textarea { height: auto; min-height: 50px; font-size: 16px; }
select {
	appearance: none; padding-right: 24px; background-repeat: no-repeat; background-position: right 8px center; background-size: 9px 6px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='24' viewBox='0 0 32 24'><polygon points='0,0 32,0 16,24' fill='rgb(138,138,138)'/></svg>");
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #8a8a8a; background-color: #fefefe; box-shadow: 0 0 5px #cacaca; }
input[type=checkbox], input[type=radio] { margin: 0 0 1rem; vertical-align: baseline; }

hr { max-width: 1200px; margin: 1.25rem auto; border: 0; height: 1px; background-color: #898989; opacity: 1; }

/* Old Foundation .menu lists (footer etc.) */
.menu { list-style: none; margin: 0; padding: 0; }
.menu > li > a { display: block; padding: 11.2px 16px; line-height: 1; }
.menu.vertical > li { display: block; }

/* Navigation (Foundation top-bar + dropdown menu): white bar, 14px links, dropdowns open on hover from medium up. */
.academy-nav { background: #fff; padding: 8px; --bs-navbar-nav-link-padding-x: 16px; --bs-navbar-padding-y: 0; --bs-nav-link-padding-y: 11.2px; --bs-navbar-color: #616161; --bs-navbar-hover-color: #616161; --bs-navbar-active-color: #616161; }
.navbar-expand-md .navbar-nav.academy-ul .nav-link, .academy-nav .navbar-nav .nav-link { padding: 11.2px 16px; }
.academy-nav .nav-link, .academy-nav .dropdown-item { font-size: 14px; color: #616161; padding: 11.2px 16px; line-height: 1; }
.academy-nav .dropdown-menu { border-radius: 0; border: 1px solid #cacaca; min-width: 200px; padding: 0; margin: 0; }
.academy-nav .dropdown-item:hover, .academy-nav .dropdown-item:focus { background: transparent; color: #616161; }
.academy-nav .dropdown-toggle::after { border-top-color: #1779ba; border-width: 6px 6px 0; vertical-align: middle; margin-left: .4rem; }
@media (min-width: 768px) {
	.academy-nav .dropdown:hover > .dropdown-menu { display: block; }
}
.academy-titlebar { background: #fff; color: #000; padding: .5rem; display: flex; align-items: center; gap: .5rem; }
.academy-titlebar .navbar-toggler { border: 0; padding: 0; width: 20px; height: 16px; position: relative; box-shadow: none; }
.academy-titlebar .navbar-toggler::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: #002364; box-shadow: 0 7px 0 #002364, 0 14px 0 #002364; }
.academy-titlebar .title { font-weight: bold; }

/* Modals (Foundation reveal): square, light border. */
.modal-content { border-radius: 0; border: 1px solid #cacaca; background: #fefefe; }
.modal-body { padding: 1rem 2rem 2rem; }

/* Grid details that differ between Foundation's XY grid and Bootstrap's row (measured against live 2026-11-08):
   - Foundation .grid-padding-x > .cell (0,2,0) keeps its 15px side padding even with the site's .padding (2em) class;
     in Bootstrap .row > * and .padding have the same weight and .padding won (columns 34px narrower).
   - Non-column children of a grid row (stray <p>, <br> in the legacy markup) take no width in Foundation's flex row;
     Bootstrap's .row > * made them 100% wide, pushing columns onto a new line. */
.row.academy-gx > * { padding-left: 15px; padding-right: 15px; }
.row > :not([class*="col"]) { flex: 0 1 auto; width: auto; max-width: none; padding-left: 0; padding-right: 0; }
