:root {
    scrollbar-gutter: stable;
    --brand-light: #0099ab;
    --brand-medium: #006792;
    --brand-dark: #044E68;
    --text-main: #212529;
    --border-subtle: #e5e7eb;
    --bg-soft: rgba(255, 255, 255, .85);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
}

/* Landing mode pushes header down */
body.landing .search-header {
    padding-top: 5vh;
    /* ~top third of screen */
    padding-bottom: 5vh;
}

body.landing .search-header .logo {
    margin-bottom: 8rem;
    /* more space before search bar */
}

/* Shrink header + logo when results are visible */
body.has-results .search-header {
    padding: 1rem;
}

body.has-results .search-header .logo {
    width: 60px;
    height: 60px;
}

header {
    position: sticky;
    top: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    z-index: 1030;
}

.datav3-layout.search-v3-layout header,
.datav3-layout.alerts-body header,
.datav3-layout.tracking-page-mode header,
.datav3-layout.our-records-body header {
    background: #fff;
}

a[href],
button,
summary,
select,
label[for],
[role="button"],
[role="tab"],
[role="menuitem"],
[role="menuitemradio"],
[role="option"],
.dropdown-item {
    cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled,
textarea:disabled,
[aria-disabled="true"],
.disabled {
    cursor: not-allowed;
}

@media (max-width: 767.98px) {
    body.datav3-layout header {
        position: static;
    }
}

main {
    flex: 1;
    padding: 1rem;
    opacity: var(--state-results);
    transition: opacity .3s ease;
}

.btn-primary,
.btn-outline-primary {
    --btn: var(--brand-light);
    border-color: var(--btn);
}

/* Shared control shape across the new DATA interface. */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
[role="button"] {
    border-radius: 12px;
}

/* The billing-frequency control on /plans is a switch, not a standard button. */
button.plans-switch {
    border-radius: 999px;
}

.btn-primary {
    background: var(--btn);
    color: #fff;
}

.btn-primary:hover {
    background: #044e68;
    border-color: #044e68;
}

.btn-outline-primary {
    color: var(--btn);
}

.btn-outline-primary:hover {
    background: var(--btn);
    color: #fff;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    padding: 0;
}


.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
}

.icon-2x {
    width: 1.25em;
    height: 1.25em;
}

.icon-3x {
    width: 1.5em;
    height: 1.5em;
}

.icon-4x {
    width: 1.75em;
    height: 1.75em;
}

.icon-5x {
    width: 2em;
    height: 2em;
}

.icon-6x {
    width: 2.5em;
    height: 2.5em;
}

.icon-blue {
    color: rgba(13, 110, 253, 0.85);
}


.record-footer-btn {
    color: #D1D5DB;
}

.record-footer-btn:hover,
.record-footer-btn:focus-visible {
    color: var(--brand-dark);
}

.record-footer-btn.active {
    border: none;
    color: var(--brand-light);
}

.record-footer-btn.active i,
.record-footer-btn.active .icon {
    color: var(--brand-light);
}


@media (min-width: 768px) {
    main {
        padding: 2rem;
    }
}
