@font-face {
    font-family: 'Fabriga';
    src: url('/fonts/Fabriga-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fabriga';
    src: url('/fonts/Fabriga-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fabriga';
    src: url('/fonts/Fabriga-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fabriga';
    src: url('/fonts/Fabriga-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Function';
    src: url('/fonts/FunctionV2.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.625;
    color: #202124;
    background: #ffffff;
    height: 100%;    
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    min-height: 800px;
}

img {
    max-width: 100%;
}

a {
    color: #005ea5;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #000;
    color: #fff;
    padding: 12px 16px;
    z-index: 1000;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    background: #ffffff;
}

.site-nav {
    width: 100%;
    background: #ffffff;
    color: #000000;
    font-size: 1rem;
    border-bottom: 1px solid #e5e7eb;
    height:auto !important;
    line-height: normal !important;
    padding: 0;
}

.site-nav-shell {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.site-nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.site-nav-inner-logo-only {
    justify-content: center;
    align-items: center;
}

.site-nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
}

.site-logo-link {
    display: inline-block;
    height: 1.7rem;
}

.site-logo {
    display: block;
    width: auto;
    height: 100%;
}

.page-banner {
    background: oklch(0.383788 0.117826 260.74);
    color: #ffffff;
}

.page-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: clamp(2rem, calc(96 / 1280 * 100vw), 6rem);
    padding-bottom: clamp(2rem, calc(96 / 1280 * 100vw), 6rem);
}

.page-banner-title-wrap {
    display: flex;
    align-items: center;
    width: 100%;
}

.page-banner-title {
    margin: 0;
    display: inline-block;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: clamp(1.75rem, calc(48 / 1280 * 100vw), 3rem);
    line-height: 1;
    font-weight: 700;
    color: #ffffff;
}

.page-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: 2rem;
}

.page-banner-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    border: 1.5px solid #ffffff;
    border-radius: 9999px;
    background: transparent;
    color: #ffffff;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.page-banner-pill:hover {
    background: #ffffff;
    color: oklch(0.383788 0.117826 260.74);
    text-decoration: none;
}

/* Content */
.property-search-wrap .container {
    padding-top: 44px;
    padding-bottom: 56px;
}

.property-search-hero {
    margin-bottom: 34px;
    background: oklch(0.653108 0.196498 30.6178);
    padding: 34px 32px 26px;
}

.property-search-title {
    margin: 0 0 28px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 2.25rem;
    line-height: 1.05;
    font-weight: 700;
    color: #000000;
    text-transform: none;
}

.property-search-description {
    margin: 0;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.55;
    font-weight: 400;
    color: #111827;
}

.property-search-input-label {
    margin: 0 0 14px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 400;
    color: #111827;
}

.property-search-form {
    width: 100%;
}

.property-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #cfcfcf;
    border-radius: 9999px;
    background: #ffffff;
    padding-right: 72px;
    box-shadow: none !important;
}

    .property-search-input-wrap:focus-within {
        border: 2px solid #111827;
        box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
    }

.property-search-input {
    width: 100%;
    margin-bottom: 0 !important;
    border: 0 !important;
    background: transparent !important;
    padding-left: 30px !important;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.25rem !important;
    color: #111827;
    box-shadow: none !important;
}

    .property-search-input::placeholder {
        color: #9ca3af;
    }

    .property-search-input:focus {
        outline: none;
        box-shadow: none !important;
    }

.content-wrap .container {
    padding-top: 32px;
    padding-bottom: 56px;
}

.search-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.property-search-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    border: 1.5px solid #111827;
    border-radius: 9999px;
    background: transparent;
    color: #111827;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .property-search-pill:hover {
        background: #111827;
        color: #ffffff;
        text-decoration: none;
    }


.property-search-autocomplete {
    position: relative;
}

.property-suggestion-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.property-suggestion-item {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: 0;
    background: #ffffff;
    text-align: left;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.45;
    color: #111827;
    cursor: pointer;
}

.property-suggestion-item + .property-suggestion-item {
    border-top: 1px solid #e5e7eb;
}

.property-suggestion-item:hover {
    background: #f9fafb;
}

.property-details-section {
    margin-top: 28px;
}

.property-details-card {
    padding: 28px;
}

.property-details-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
}

.property-details-grid > div {
    min-width: 0;
}

.property-details-grid-full {
    grid-column: 1 / -1;
}

.property-details-grid dt {
    margin: 0 0 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.property-details-grid dd {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #111827;
}

.tabs {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #d1d5db;
    background: #ffffff;
}

.tab-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: #4b5563;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.35;
    padding: 18px 22px 16px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.tab-button:hover {
    background: #f9fafb;
    text-decoration: none;
}

.tab-button.is-active {
    color: #111827;
    font-weight: 500;
}

.tab-button.is-active::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 3px;
    background: #007a33;
    border-radius: 2px 2px 0 0;
}

.tab-panel {
    display: none;
    padding: 28px 24px 24px;
}

.tab-panel.is-active {
    display: block;
}

.field-group {
    display: block;
    margin-bottom: 20px;
}

.field-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    color: #111827;
}

.text-input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #c7ccd1;
    border-radius: 4px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #111827;
    background: #ffffff;
}

.text-input:focus {
    outline: 2px solid #8ecae6;
    outline-offset: 0;
    border-color: #007a33;
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 4px;
    min-height: 46px;
    padding: 10px 20px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
}

.button-primary {
    background: #007a33;
    border-color: #007a33;
    color: #ffffff;
}

.button-primary:hover {
    background: #00662a;
    border-color: #00662a;
}

.button-primary:focus {
    outline: 2px solid #8ecae6;
    outline-offset: 2px;
}

.validation-summary {
    margin-bottom: 12px;
    color: #b91c1c;
    font-size: 0.9375rem;
}

.validation-summary ul {
    margin: 0;
    padding-left: 20px;
}

.field-validation {
    display: block;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 0.9375rem;
}

.results-message {
    margin: 20px 0 0;
    font-size: 1rem;
    color: #374151;
}

.results-list {
    margin-top: 20px;
}

.result-card {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #ffffff;
    padding: 24px;
}

.result-card + .result-card {
    margin-top: 14px;
}

.result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.result-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 500;
    color: #111827;
}

.result-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.result-grid > div {
    min-width: 0;
}

.result-grid-full {
    grid-column: 1 / -1;
}

.result-grid dt {
    margin: 0 0 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
}

.result-grid dd {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.55;
    color: #111827;
}

/* Status */
.status-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
}

.status-approved {
    background: #e7f6ec;
    color: #0b6b2e;
}

.status-under-assessment {
    background: #fff4d6;
    color: #8a5a00;
}

.status-refused {
    background: #fde7e7;
    color: #a61b1b;
}

.status-default {
    background: #eef2f7;
    color: #374151;
}


/* Error page */
.error-wrap .container {
    padding-top: 44px;
    padding-bottom: 56px;
}

.error-hero {
    margin-bottom: 28px;
    background: oklch(0.836045 0.062118 172.566);
    padding: 34px 32px 30px;
}

.error-kicker {
    margin: 0 0 12px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.error-title {
    margin: 0 0 22px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 2.25rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
    text-transform: none;
}

.error-description {
    max-width: 1200px;
    margin: 0;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.55;
    font-weight: 400;
    color: #111827;
}

.error-request-card {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 24px;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
}

.error-request-label {
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 0.875rem;
    line-height: 1.3;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.error-request-id {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #111827;
    word-break: break-all;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: 28px;
}

.error-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.error-button-primary {
    border: 1.5px solid #111827;
    background: #111827;
    color: #ffffff;
}

    .error-button-primary:hover {
        background: #000000;
        color: #ffffff;
        text-decoration: none;
    }

.error-button-secondary {
    border: 1.5px solid #111827;
    background: transparent;
    color: #111827;
}

    .error-button-secondary:hover {
        background: #111827;
        color: #ffffff;
        text-decoration: none;
    }

.error-help-card {
    max-width: 1200px;
    padding: 24px 28px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #ffffff;
}

.error-help-title {
    margin: 0 0 10px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 500;
    color: #111827;
}

.error-help-text {
    margin: 0;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.55;
    color: #374151;
}

.site-footer {    
    flex-shrink: 0;
    margin-top: 0;
}

.footer-disclaimer {
    width: 100%;
    background: #ffffff;
    color: #ffffff;
    text-align: center;
}

.footer-disclaimer-inner {
    padding-left: clamp(1.5rem, calc(224 / 1280 * 100vw), 14rem);
    padding-right: clamp(1.5rem, calc(224 / 1280 * 100vw), 14rem);
    padding-top: clamp(2.5rem, calc(96 / 1280 * 100vw), 4rem);
    padding-bottom: clamp(2.5rem, calc(96 / 1280 * 100vw), 4rem);
    font-size: 1.125rem;
    line-height: 1.4;
}

.footer-disclaimer p {
    margin: 0;
    color: #ffffff;
}

.footer-links-bar {
    position: relative;
    background: #000000;
    color: #ffffff;
    padding: 2rem 0;
}

.footer-links-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1;
}

.footer-links-list li {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid #ffffff;
}

.footer-links-list li:first-child {
    border-left: 0;
    padding-left: 0;
}

.footer-links-list a {
    color: #ffffff;
    text-decoration: none;
}

.footer-links-list a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-top-wrap {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.footer-top-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: transparent;
    border: 1.5px solid #ffffff;
    border-radius: 9999px;
    padding: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-top-button:hover {
    background: #ffffff;
    color: #000000;
}

.footer-top-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

@media (min-width: 32rem) {
    .footer-disclaimer {
        background: #989898;
    }
}

@media (min-width: 40rem) {
    .site-logo-link {
        height: 2rem;
    }
}

@media (min-width: 96rem) {
    .footer-top-wrap {
        position: absolute;
        top: 50%;
        right: 1.5rem;
        left: auto;
        padding-top: 0;
        margin: 0;
        transform: translateY(-50%);
    }
}

@media (min-width: 80rem) {
    .site-nav-shell {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .site-nav-inner {
        min-height: 5.25rem;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .site-logo-link {
        height: 2.75rem;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }

    .page-banner-inner {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .page-banner-title {
        font-size: 34px;
        line-height: 1.08;
    }

    .page-banner-actions {
        margin-top: 1.5rem;
        gap: 0.75rem;
    }

    .page-banner-pill {
        width: 100%;
        justify-content: center;
    }

    .property-search-title {
        font-size: 1.75rem;
        margin-bottom: 18px;
    }

    .property-search-description {
        font-size: 1rem;
    }

    .property-search-wrap .container {
        padding-top: 28px;
        padding-bottom: 40px;
    }

    .property-search-title {
        font-size: 1.75rem;
    }

    .property-search-description {
        font-size: 1rem;
    }

    .property-search-input {
        min-height: 3.75rem;
        padding: 0 16px;
        font-size: 1rem;
    }
    
    .property-search-input-label {
        font-size: 1rem;
    }

    .property-search-input-wrap {
        min-height: 3.75rem;
        padding-left: 54px;
        padding-right: 18px;
    }

    .property-search-icon {
        left: 18px;
        width: 24px;
        height: 24px;
    }

    .property-suggestion-item {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .property-details-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .property-details-grid-full {
        grid-column: auto;
    }

    .property-search-input {
        font-size: 1.1rem;
    }

    .autoComplete_wrapper > ul > li {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-button {
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
        font-size: 1rem;
    }

    .tab-button.is-active::after {
        left: 0;
        right: auto;
        width: 4px;
        top: 0;
        bottom: 0;
        height: auto;
        border-radius: 0;
    }

    .tab-panel {
        padding: 20px 16px;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-title {
        font-size: 1.25rem;
    }

    .result-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .result-grid-full {
        grid-column: auto;
    }

    .error-wrap .container {
        padding-top: 28px;
        padding-bottom: 40px;
    }

    .error-hero {
        margin-bottom: 24px;
        padding: 24px 20px 22px;
    }

    .error-title {
        font-size: 1.75rem;
        margin-bottom: 18px;
    }

    .error-description {
        font-size: 1rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-button {
        width: 100%;
        font-size: 1rem;
    }

    .error-help-card {
        padding: 20px;
    }

    .error-help-title {
        font-size: 1.25rem;
    }

    .error-help-text {
        font-size: 1rem;
    }

    .site-footer {
        margin-top: 36px;
    }

    .footer-disclaimer-inner {
        font-size: 1rem;
        line-height: 1.4;
    }

    .footer-links-list {
        gap: 0.5rem 0;
    }

    .footer-links-list li {
        margin-right: 0.75rem;
    }
}
/* UI improvement pass */
:focus-visible {
    outline: 3px solid #8ecae6;
    outline-offset: 3px;
}

.page-kicker {
    margin: 0 0 12px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.page-banner-choice-actions {
    align-items: stretch;
}

.da-search-panel {
    padding: 28px;
    margin-bottom: 28px;
}

.da-search-panel-header {
    margin-bottom: 20px;
}

.section-title {
    margin: 0 0 10px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.75rem;
    line-height: 1.25;
    font-weight: 600;
    color: #111827;
}

.section-subtitle {
    margin: 0 0 14px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
    color: #111827;
}

.section-description,
.search-help-text {
    margin: 0;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.55;
    color: #374151;
}

.search-help-text {
    margin-top: 12px;
}

.application-search-form,
.property-search-form {
    margin: 0;
}

.application-search-anchor {
    scroll-margin-top: 60px;
}

.results-section:focus {
    outline: none;
}

.results-section {
    margin-top: 32px;
}

.results-summary-card,
.empty-state-card,
.details-summary-card,
.result-card,
.application-result-card,
.document-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.results-summary-card {
    padding: 24px 28px;
    margin-bottom: 20px;
}

.results-summary-kicker {
    margin: 0 0 8px;
    font-size: 0.875rem;
    line-height: 1.3;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.results-summary-title {
    margin: 0 0 8px;
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}

.results-summary-text,
.results-summary-meta,
.results-summary-note {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.55;
    color: #374151;
}

.results-summary-meta {
    font-weight: 500;
    color: #111827;
}

.results-summary-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    padding: 10px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
}

    .results-summary-hint .material-icons {
        width: 22px;
        height: 22px;
        font-size: 22px;
        line-height: 1;
        color: #2563eb;
        flex: 0 0 auto;
    }

.results-summary-note {
    margin-top: 10px;
    color: #6b7280;
}

.application-results-list {
    display: grid;
    gap: 14px;
}

.application-results-list.compact {
    gap: 10px;
}

.application-result-card {
    padding: 22px 24px;
}

.application-result-main,
.details-summary-main,
.document-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.application-result-title,
.document-title {
    margin: 0;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 600;
    color: #111827;
}

.application-result-title a {
    color: #005ea5;
    text-decoration: none;
}

.application-result-title a:hover,
.application-result-title a:focus {
    text-decoration: underline;
}

.application-result-description,
.document-meta {
    margin: 6px 0 0;
    font-size: 1.25rem;
    line-height: 1.5;
}

.application-result-grid {
    margin-top: 16px;
}

.details-toggle-button,
.back-link-button,
.document-open-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1.15rem;
    border: 1.5px solid #111827;
    border-radius: 9999px;
    background: transparent;
    color: #111827;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
}

    .details-toggle-button:focus {
        background: transparent;
        box-shadow: none !important;
    }


.details-toggle-button {
    margin-top: 16px;
}

.details-bottom-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 28px;
}

.back-link-button {
    gap: 0.5rem;
}

.back-link-button .material-icons {
    font-size: 1.25rem;
    line-height: 1;
}

.details-toggle-button:hover,
.back-link-button:hover,
.document-open-link:hover {
    background: #111827;
    color: #ffffff;
    text-decoration: none;
}

.application-result-more {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.empty-state-card {
    padding: 28px;
    margin-top: 24px;
}

.empty-state-card.compact {
    padding: 20px;
    margin-top: 12px;
}

.empty-state-card h3,
.empty-state-card h4 {
    margin: 0 0 10px;
    font-weight: 600;
    color: #111827;
}

.empty-state-card p {
    margin: 0 0 16px;
    font-size: 1.25rem;
    line-height: 1.55;
    color: #374151;
}

.empty-state-card.compact p {
    margin-bottom: 0;
}

.details-summary-card {
    padding: 28px;
    margin: 18px 0 24px;
    background: oklch(0.836045 0.062118 172.566);
}

.property-details-wrap .details-summary-card {
    background: oklch(0.653108 0.196498 30.6178);
}

.details-summary-title {
    margin: 0 0 10px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 2.25rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
}

.details-summary-description {
    margin: 0;
    max-width: 880px;
    font-size: 1.25rem;
    line-height: 1.55;
    color: #111827;
}

.details-summary-grid {
    margin-top: 24px;
}

.details-panel {
    padding: 0;
}

.detail-tabs {
    height: auto;
    overflow-x: auto;
}

.detail-tabs .tab {
    height: auto;
    line-height: normal;
}

.detail-tabs .tab a {
    height: auto;
    line-height: 1.35;
    padding: 22px 26px 20px;
    color: #4b5563;
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: none;
}

.detail-tabs .tab a.active {
    color: #111827;
    font-weight: 600;
}

.tab-panel-content {
    padding: 28px 24px 24px;
}

.tab-panel-content .result-grid dd,
.tab-panel-content .da-result-table td {
    font-size: 1.25rem;
    line-height: 1.55;
}

.details-summary-grid dd {
    font-size: 1.25rem;
    line-height: 1.55;
}

.details-map {
    min-height: 320px;
    margin-top: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.responsive-table-wrap {
    overflow-x: auto;
}

.da-result-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.da-result-table th,
.da-result-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.da-result-table th {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    font-weight: 600;
}

.document-list,
.details-card-list {
    display: grid;
    gap: 12px;
}

.document-card {
    align-items: center;
    padding: 16px 18px;
}

.document-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.document-card-main img {
    flex: 0 0 auto;
}

.document-title {
    font-size: 1.25rem;
}

.showall-section {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e5e7eb;
}

.showall-section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.status-modal .modal-content p {
    margin-top: 0;
}

/* Keep active state consistent on mobile as well as desktop. */
@media (max-width: 767px) {
    .page-banner-choice {
        align-items: center;
        text-align: center;
    }

    .da-search-panel,
    .details-summary-card,
    .application-result-card,
    .results-summary-card,
    .empty-state-card {
        padding: 20px;
    }

    .application-result-main,
    .details-summary-main,
    .document-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .details-summary-title {
        font-size: 1.75rem;
    }

    .details-summary-description {
        font-size: 1rem;
    }

    .detail-tabs {
        display: flex;
        flex-direction: column;
    }

    .detail-tabs .tab a {
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
        font-size: 1rem;
        padding: 18px 20px;
    }

    .result-grid dd,
    .tab-panel-content .da-result-table td,
    .details-summary-grid dd {
        font-size: 1.125rem;
    }

    .document-open-link,
    .back-link-button,
    .details-toggle-button {
        width: 100%;
    }
}

/* Application search page - consolidated styles */
.application-search-wrap .container {
    padding-top: 44px;
    padding-bottom: 56px;
}

.application-search-hero {
    margin-bottom: 28px;
    background: oklch(0.836045 0.062118 172.566);
    padding: 34px 32px 28px;
}

.application-search-title {
    margin: 0 0 16px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 2.25rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
    text-transform: none;
}

.application-search-description {
    max-width: 1200px;
    margin: 0;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.2rem;
    line-height: 1.55;
    font-weight: 400;
    color: #111827;
}

.application-search-options-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
}

.application-option-card {
    display: flex;
    flex-direction: column;
    min-height: 470px;
    padding: 30px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.application-option-card.is-active {
    border-color: #111827;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

.application-option-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
}

.application-option-card-header {
    margin-bottom: 22px;
}

.property-option-kicker,
.application-option-kicker {
    margin: 0 0 8px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4b5563;
}

.section-title {
    margin: 0 0 14px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 2rem;
    line-height: 1.12;
    font-weight: 700;
    color: #0f172a;
}

.section-description {
    margin: 0;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.15rem;
    line-height: 1.5;
    color: #374151;
}

.application-lodgement-filter-list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: auto;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.application-lodgement-filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 3.35rem;
    padding: 0.9rem 1.15rem;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    background: #ffffff;
    color: #111827;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    box-shadow: none;
}

.application-lodgement-filter-link:last-child {
    border-bottom: 0;
}

.application-lodgement-filter-link::after {
    content: "chevron_right";
    font-family: 'Material Icons';
    font-size: 1.45rem;
    line-height: 1;
    color: currentColor;
}

.application-lodgement-filter-link:hover,
.application-lodgement-filter-link:focus,
.application-lodgement-filter-link.is-active {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
    box-shadow: none;
}

.application-lodgement-filter-link.is-active {
    font-weight: 700;
}

.application-search-form {
    width: 100%;
    margin-top: auto;
}

.application-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #cfcfcf;
    border-radius: 9999px;
    background: #ffffff;
    padding-right: 72px;
    box-shadow: none !important;
}

    .application-search-input-wrap:focus-within {
        border: 1px solid #111827;
        box-shadow: none;
    }

.application-search-input {
    width: 100%;
    margin-bottom: 0 !important;
    border: 0 !important;
    background: transparent !important;
    padding-left: 30px !important;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.25rem !important;
    color: #111827;
    box-shadow: none !important;
}

.application-search-input::placeholder {
    color: #9ca3af;
}

.application-search-input:focus {
    outline: none;
    box-shadow: none !important;
}

.application-search-submit {
    position: absolute;
    top: 50%;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-left: 1px solid #9ca3af;
    padding-right: 10px;
    padding-left: 15px;
    background: transparent;
    color: #111827;
    cursor: pointer;
    transform: translateY(-50%);
}

.application-search-submit:hover,
.application-search-submit:focus {
    background: transparent;
    color: #000000;
    outline: none;
}

.application-search-submit svg {
    width: 32px;
    height: 32px;
}

.application-example-panel {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
}

.application-example-heading {
    margin: 0 0 10px;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 700;
    color: #111827;
}

.application-example-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.application-example-list li {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    background: #ffffff;
    font-family: 'Fabriga', Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.2;
    color: #374151;
}

.page-banner-choice {
    flex-direction: row;
    align-items: center;
    gap: 0;
}

.page-banner-choice .choice-title {
    display: inline;
}

.page-banner-choice .choice-description {
    display: none;
}

@media (max-width: 900px) {
    .application-search-options-grid {
        grid-template-columns: 1fr;
    }

    .application-option-card {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .application-search-wrap .container {
        padding-top: 28px;
        padding-bottom: 40px;
    }

    .application-search-hero {
        margin-bottom: 24px;
        padding: 24px 20px 20px;
    }

    .application-search-title {
        font-size: 1.75rem;
        margin-bottom: 14px;
    }

    .application-search-description,
    .section-description {
        font-size: 1rem;
    }

    .application-option-card {
        padding: 20px;
    }

    .section-title {
        font-size: 1.55rem;
    }

    .application-lodgement-filter-link {
        min-height: 3.1rem;
        font-size: 1rem;
    }


    .application-search-input {
        font-size: 1.25rem !important;
    }

    .application-search-submit {
        right: 8px;
        width: 40px;
        height: 40px;
    }

    .application-search-submit svg {
        width: 24px;
        height: 24px;
    }

    .application-example-heading,
    .application-example-list li {
        font-size: 1.25rem;
    }
}

/* v17 fix: the lodged period menu must never use Materialize nav/dropdown/collapsible behaviour. */
.application-search-options-grid .application-lodgement-filter-list {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    line-height: normal !important;
    overflow: visible !important;
    margin-top: auto !important;
    padding: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: none !important;
}

.application-search-options-grid .application-lodgement-filter-link {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: auto !important;
    min-height: 3.35rem !important;
    max-height: none !important;
    line-height: 1.3 !important;
    padding: 0.9rem 1.15rem !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-family: 'Fabriga', Arial, sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.application-search-options-grid .application-lodgement-filter-link:last-child {
    border-bottom: 0 !important;
}

.application-search-options-grid .application-lodgement-filter-link:hover,
.application-search-options-grid .application-lodgement-filter-link:focus,
.application-search-options-grid .application-lodgement-filter-link.is-active {
    display: flex !important;
    background: #f3f4f6 !important;
    color: #111827 !important;
    text-decoration: none !important;
}

.footer-top-button:focus {
    background: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.footer-top-button:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Property search autocomplete panel height
   Keep this page-specific so other search panels are not affected. */
.property-search-box-section {
    min-height: 550px;
    overflow: visible;
}

.property-search-box-section .autocomplete-content {
    z-index: 1000;
}

@media only screen and (max-width: 600px) {
    .property-search-box-section {
        min-height: 550px;
    }
}

/* Show All tab sections */
.show-all-tab-content {
    display: block;
}

.show-all-section {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

    .show-all-section:first-child {
        padding-top: 0.5rem;
    }

    .show-all-section:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

.show-all-heading {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.35;
    color: #4b5563;
    text-transform: uppercase;
}

.xxshow-all-heading {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f4e79;
}
