main > .container {
    padding: 15px 15px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.not-set {
    color: var(--bs-danger);
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px var(--bs-body-color);
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px var(--bs-body-color);
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: var(--bs-secondary-color);
}

.error-summary {
    color: var(--bs-danger-text-emphasis);
    background: var(--bs-danger-bg-subtle);
    border-left: 3px solid var(--bs-danger-border-subtle);
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* text size of the content (design piece 3), only inside <main>: the old app's family and sizes from
   yii1-final old/css/main.css (body { font-family: verdana, tahoma, arial, sans-serif; font-size: 8pt };
   h1,h2,h3 { margin: 0 0 10px; font-family: verdana, ...; font-weight: bold }; h1 14pt; h2 13pt; h3 10pt;
   input,textarea,select,button { font-family: verdana, ...; font-size: 8pt }; .btn { font-size: 8pt };
   table.dataGrid th, td { padding: 5px }). The header, the menu and the footer are outside <main> and keep
   their sizes; the old colours are a later piece. */
main {
    --bs-body-font-family: verdana, tahoma, arial, sans-serif;
    --bs-body-font-size: 8pt;
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
}

main h1, main h2, main h3 {
    margin: 0 0 10px;
    font-family: var(--bs-body-font-family);
    font-weight: bold;
}

main h1 { font-size: 14pt; }
main h2 { font-size: 13pt; }
main h3 { font-size: 10pt; }

/* the "Born" / "Deceased" / "Death Notice" sections of the detail page and the form are <h4 class="mt-4"> in the
   new views; old: div.group { font-size: 10pt; font-weight: bold } (main.css; the margins come from .mt-4) */
main h4 {
    font-family: var(--bs-body-font-family);
    font-size: 10pt;
    font-weight: bold;
}

main .form-control, main .form-select, main .input-group-text {
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
}

/* the advanced search's "Date Of Death" legend carries Bootstrap's .fs-6 (1rem !important); old showed it as a
   plain 8pt label (form.css div.form div.simple label), so the one rule needs !important too */
main legend.fs-6 { font-size: var(--bs-body-font-size) !important; }

main .btn {
    --bs-btn-font-family: var(--bs-body-font-family);
    --bs-btn-font-size: var(--bs-body-font-size);
}

/* the Yii 1 pager: ul.yiiPager { font-size: 11px } (the framework's web/widgets/pagers/pager.css, read only) */
main .pagination { --bs-pagination-font-size: 11px; }

/* tables and grids (the result grid, the detail view, the admin lists): no old size rule (main.css table.dataGrid
   and Yii's gridview/styles.css set only borders, padding and colours). Measured on the old stage-2 screenshot
   (tests/_output/visual/old/guest/index.php_et_data_search_simple_search_Tamm_q_1.png): the grid text is as wide
   as the 8pt summary line next to it and the row pitch is 23px (5px + 5px padding, 1px border, a ~12px line),
   i.e. old's tables were at the body's 8pt (the XHTML 1.0 doctype keeps the page in standards mode; unlike
   hooned's quirks-mode 16px). So the table inherits main's size; only the old cell padding is set. */
main .table > :not(caption) > * > * { padding: 5px; }

/* header and main menu: the old app's colours (yii1-final old/css/main.css: #logo, .navbar, .navbar a:hover, .navbar .active) */
#header {
    padding-left: 15px;
    padding-right: 15px;
}

/* the old header strip: yii1-final old/css/main.css #header { height: 71px; background: url(img/ra.gif)
   no-repeat center top }, the title on it as #logo { padding: 20px 0 }; web/css/img/ra.gif is old/css/img/ra.gif */
.site-logo {
    height: 71px;
    padding: 20px 0;
    background: url(img/ra.gif) no-repeat center top;
}

/* #logo { font-size: 16pt; font-weight: bold; color: #52565B }; old has no inline width / font-size box on the
   title (unlike plakatid), so the title box is the full strip width at 16pt */
.site-title {
    font-size: 16pt;
    font-weight: bold;
    color: #52565B;
    text-decoration: none;
}

.site-title:hover {
    color: #52565B;
}

/* .navbar { background-color: #0088cc }, .navbar a { color: white }, hover and .active { background-color: #00a6fc } */
.main-menu {
    --bs-navbar-padding-x: .25rem;
    --bs-navbar-padding-y: .25rem;
    --bs-navbar-color: #fff;
    --bs-navbar-hover-color: #fff;
    --bs-navbar-active-color: #fff;
    --bs-navbar-nav-link-padding-x: .75rem;
    background-color: #0088cc;
}

.main-menu .nav-link {
    border-radius: var(--bs-border-radius);
}

.main-menu .nav-link:hover,
.main-menu .nav-link:focus,
.main-menu .nav-link.active {
    background-color: #00a6fc;
}

/* align navbar brand baseline with nav links */
.navbar > .container,
.navbar > .container-fluid {
    align-items: baseline;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    color: var(--bs-navbar-color);
}

@media (max-width: 767.98px) {
    .navbar-nav .nav-link.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar-nav .nav-link.logout:focus,
.navbar-nav .nav-link.logout:hover {
    color: var(--bs-navbar-hover-color);
}

/* login inputs: seamless icon inside input (Volt style) */
.login-split-card .input-group {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.login-split-card .input-group .input-group-text {
    background: transparent;
    border: 0;
    padding-left: 1rem;
    padding-right: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-split-card .input-group .form-control {
    border: 0;
    background: transparent;
}

.login-split-card .input-group .form-control:focus {
    box-shadow: none;
}

.login-split-card .input-group:focus-within {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}

/* validation styles for login split card (browsers with :has()) */
@supports selector(.input-group:has(.is-invalid)) {
    .login-split-card .input-group:has(.is-invalid) ~ .invalid-feedback {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .login-split-card .input-group:has(.is-invalid) {
        border-color: var(--bs-danger);
    }

    .login-split-card .input-group:has(.is-invalid):focus-within {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* fallback validation styles for login split card (browsers without :has()) */
@supports not selector(.input-group:has(.is-invalid)) {
    .login-split-card .invalid-feedback:not(:empty) {
        display: block;
        margin-top: .35rem;
        margin-bottom: .5rem;
    }

    .login-split-card .input-group .form-control.is-invalid {
        border: var(--bs-border-width) solid var(--bs-danger);
    }

    .login-split-card .input-group .form-control.is-invalid:focus {
        box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
    }
}

/* login split card */
.login-split-card {
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
    background-color: var(--bs-gray-100);
    width: 100%;
    max-width: 900px;
}

.login-split-card-wide {
    max-width: 960px;
}

.login-brand-title {
    font-size: 1.75rem;
    line-height: 1.3;
}

.login-brand-text {
    font-size: .9rem;
}

.login-brand-panel {
    background: linear-gradient(135deg, #40B3D8 0%, #3a9cbd 40%, #83C933 100%);
    position: relative;
    min-height: 480px;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(241, 138, 42, .25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(131, 201, 51, .2) 0%, transparent 40%);
    pointer-events: none;
}

.login-btn {
    background: linear-gradient(135deg, #40B3D8, #3a9cbd);
    border: none;
    font-weight: 600;
    letter-spacing: .02em;
    transition: opacity .2s, transform .1s;
}

.login-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

/* centered page layout */
.site-login,
.site-index,
.site-error,
.site-about {
    flex: 1;
}

.site-error .site-error-content,
.site-about .site-about-content {
    width: 100%;
    max-width: 90%;
}

@media (min-width: 576px) {
    .site-error .site-error-content,
    .site-about .site-about-content {
        max-width: 80%;
    }
}

@media (min-width: 768px) {
    .site-error .site-error-content,
    .site-about .site-about-content {
        max-width: 60%;
    }
}

@media (min-width: 992px) {
    .site-error .site-error-content,
    .site-about .site-about-content {
        max-width: 50%;
    }
}

/* hero banner */
.hero-banner {
    background: linear-gradient(135deg, #83C933 0%, #3a9cbd 40%, #40B3D8 100%);
    position: relative;
}

.hero-lead {
    max-width: 520px;
}

.hero-logo {
    height: 120px;
    opacity: .45;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 15% 85%, rgba(241, 138, 42, .3) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(131, 201, 51, .25) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(64, 179, 216, .15) 0%, transparent 60%);
    pointer-events: none;
}

/* extension cards */
.extension-card {
    transition: transform .15s ease-in-out, box-shadow .15s ease-in-out;
}

.extension-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12) !important;
}

.extension-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* the simple search block (design piece 4, app\widgets\SimpleSearch), the old ptl.Search portlet:
   <div class="form" style="width: auto"> > table.linear. Old app, yii1-final old/css/form.css (or the compressed CSS
   the layout loaded): div.form { border: 1px solid #dddddd; background: #f9f9f9; color: #333333; padding: 6px;
   border-radius: 3px } (its width: 600px is overridden inline to auto: full width), div.form table.linear td
   { padding: 2px 3px; vertical-align: middle }, div.form input[type=text] { border: 1px solid #cacaca; border-radius: 3px;
   padding: 6px 4px }; old/css/main.css a { color: #0088cc; text-decoration: none }, a:hover { color: #005580 }.
   Old: a <br /> after the block, here Bootstrap's mb-3 spacing. Values checked against this app's own old/css/form.css. */
.simple-search {
    margin-bottom: 1rem;
    padding: 6px;
    border: 1px solid #dddddd;
    border-radius: 3px;
    background: #f9f9f9;
    color: #333333;
}

.simple-search .col-auto {
    padding: 2px 3px;
}

.simple-search .col-form-label {
    padding: 0;
}

.simple-search .form-control {
    padding: 6px 4px;
    border-color: #cacaca;
    border-radius: 3px;
}

.simple-search a:not(.btn) {
    color: #0088cc;
    text-decoration: none;
}

.simple-search a:not(.btn):hover {
    color: #005580;
}

/* the multi-field search form box (design piece 6, views/site/search-advanced.php): the old
   <div class="form" style="width: auto"> of site/searchAdvanced. This app's old/css/form.css (yii1-final):
   div.form { border: 1px solid #dddddd; background: #f9f9f9; color: #333333; padding: 6px; border-radius: 3px }
   (width: 600px overridden inline to auto: full width), div.form input[type=text], select { border: 1px solid #cacaca;
   border-radius: 3px; background-color: #ffffff }, div.form input[type=text] { padding: 6px 4px }. Labels above the
   fields (Bootstrap grid) and the select padding stay out. Old: a <br /> after the box, here Bootstrap's 1rem.
   The buttons get a 4px gap (PHP's ?> swallows the newline between them). */
.search-form-box {
    margin-bottom: 1rem;
    padding: 6px;
    border: 1px solid #dddddd;
    border-radius: 3px;
    background: #f9f9f9;
    color: #333333;
}

.search-form-box .form-control,
.search-form-box .form-select {
    border-color: #cacaca;
    border-radius: 3px;
    background-color: #ffffff;
}

.search-form-box .form-control {
    padding: 6px 4px;
}

.search-form-box .btn + .btn {
    margin-left: 4px;
}
