* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ResultsDisplay (both-not-found) */
.results-display {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px;
    gap: 12px;
    width: 100%;
    max-width: 672px;
    background: #FFFFFF;
    border: 1px solid #C0C0C4;
    box-shadow: 0px 1px 0px rgba(228, 228, 230, 0.5);
    border-radius: 6px;
    margin: 0 auto;
}

.results-display .rd-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.results-display .illus {
    position: relative;
    width: 60px;
    height: 60px;
    flex: none;
}

.results-display .illus .dot {
    position: absolute;
    left: 16.67%;
    right: 16.67%;
    top: 16.67%;
    bottom: 16.67%;
    background: #FF7142; /* Ruby/300 */
    border-radius: 8px;
}

.results-display .illus .bar1,
.results-display .illus .bar2 {
    position: absolute;
    left: 46.67%;
    right: 46.67%;
    width: 6%;
    background: #FF7142;
    border-radius: 2px;
}

.results-display .illus .bar1 { top: 31.67%; bottom: 43.33%; }
.results-display .illus .bar2 { top: 61.67%; bottom: 31.67%; }

.results-display .rd-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.results-display .heading2 {
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    color: #191B1F;
}

.results-display .paragraph {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #82828C;
}

.results-display .actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.results-display .actions .heading3 {
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    color: #191B1F;
    align-self: stretch;
}

.results-display .actions .btn-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    flex-wrap: wrap;
}

.results-display .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    gap: 10px;
    height: 36px;
    min-width: 125px;
    background: #00B3B3; /* Mint/300 */
    border: 1px solid #00878A; /* Mint/400 */
    border-radius: 4px;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    text-decoration: none;
}

.results-display .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    gap: 10px;
    height: 36px;
    min-width: 218px;
    background: #F6F6F9; /* Neutral/200 */
    border: 1px solid #C0C0C4; /* Neutral/400 */
    border-radius: 4px;
    color: #191B1F;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    text-decoration: none;
}

@media (max-width: 720px) {
    .results-display { padding: 16px; }
    .results-display .btn-row { gap: 12px; }
}

:root {
    --tl-primary: #00B2B2;
    --tl-primary-600: #00A3A3;
    --tl-primary-700: #008F8F;
    --tl-bg: #f6f8f9;
    --tl-surface: #ffffff;
    --tl-border: #e6eaee;
    --tl-text: #1f2d3d;
    --tl-muted: #6b7c93;
    --tl-info: #0ea5e9;
    --tl-danger: #ef4444;
    --radius-lg: 12px;
    --radius-md: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 18px rgba(31,45,61,0.08);
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
    color: var(--tl-text);
    background: var(--tl-bg);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--tl-text);
    position: relative;
}

header h1 {
    font-size: 2.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--tl-muted);
}

/* Language switcher positioning and styling */
.lang-switcher {
    position: absolute;
    top: 0;
    right: 0;
}

.lang-switcher select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    border: 1.5px solid var(--tl-border);
    color: var(--tl-text);
    padding: 6px 28px 6px 10px;
    font-size: 0.9rem;
    line-height: 1;
    border-radius: 999px; /* pill */
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.lang-switcher select:hover {
    border-color: var(--tl-primary);
}

.lang-switcher select:focus {
    outline: none;
    border-color: var(--tl-primary);
    box-shadow: 0 0 0 3px rgba(0, 178, 178, 0.18);
}

/* Optional custom caret using background SVG */
.lang-switcher select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2399A3AD' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

@media (max-width: 600px) {
    .lang-switcher {
        top: 8px;
        right: 8px;
    }
    .lang-switcher select {
        font-size: 0.85rem;
        padding: 6px 26px 6px 10px;
    }
}

.powered-by .brand-logo {
    height: 30px;
    width: 211px;
    object-fit: contain;
    margin: 0;
}

.brand-svg {
    height: 36px;
}
.brand-logo {
    height: 32px;
    vertical-align: middle;
    margin-right: 8px;
}

header p {
    font-size: 1rem;
    color: var(--tl-muted);
}

main {
    flex: 1;
    background: var(--tl-surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.search-section {
    margin-bottom: 30px;
}

/* New lookup form design */
.form-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 18px;
    gap: 18px;
    background: #FFFFFF; /* Neutral/100 */
    box-shadow: 0px 2px 6px rgba(42, 59, 77, 0.24); /* Depths/Level 2 */
    border-radius: 4px;
}

.form-desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    align-self: center; /* center this block within the form card */
}

.form-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    color: #000000;
    text-align: center;
}

.form-example {
    margin-top: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    color: #647990; /* Teal/300-Normal (approx) */
    text-align: center;
}

.form-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.form-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    flex: 1;
}

.form-input {
    box-sizing: border-box;
    width: 100%;
    height: 54px;
    background: #FFFFFF;
    border: 1px solid #C0C0C4; /* Neutral/400-Dark */
    border-radius: 4px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #191B1F; /* Neutral/500-Darkest replacement */
}

.form-input::placeholder {
    color: #82828C;
}

.form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    gap: 6px;
    height: 54px;
    min-width: 167px;
    background: #00B3B3; /* Mint/300 */
    border: 1px solid #00878A; /* Mint/400 */
    border-radius: 4px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px; /* Use 20px to better fit button height */
    line-height: 24px;
    cursor: pointer;
}

.form-button:hover { filter: brightness(0.98); }
.form-button:active { transform: translateY(0.5px); }

@media (max-width: 720px) {
    .form-row { flex-direction: column; }
    .form-button { width: 100%; }
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--tl-text);
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--tl-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 16px;
    background: #fff;
}

.input-group input:focus {
    outline: none;
    border-color: var(--tl-primary);
    box-shadow: 0 0 0 3px rgba(0, 178, 178, 0.18);
}

.input-group button {
    width: 100%;
    padding: 14px 16px;
    background: var(--tl-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.input-group button:hover {
    background: var(--tl-primary-600);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 178, 178, 0.18);
}

.input-group button:active {
    transform: translateY(0);
    background: var(--tl-primary-700);
}

.input-group button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.help-text {
    background: #f7fafc;
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--tl-primary);
}

.help-text p {
    margin-bottom: 10px;
    font-weight: 600;
}

.help-text ul {
    list-style: none;
    padding-left: 0;
}

.help-text li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.help-text li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--tl-primary);
    font-weight: bold;
}

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

.results-section h2 {
    color: var(--tl-text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tl-border);
}

.info-card {
    background: #f9fbfc;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--tl-border);
}

.info-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tl-border);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--tl-muted);
    margin-bottom: 5px;
    display: block;
}

.info-value {
    color: var(--tl-text);
    font-size: 1.1rem;
}

.info-value.url {
    word-break: break-all;
    color: var(--tl-primary-700);
}

.error-section, .loading-section {
    margin-top: 30px;
}

.error-card, .loading-card {
    background: #fff;
    border: 1px solid var(--tl-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.loading-card {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.error-card h3 {
    color: var(--tl-danger);
    margin-bottom: 10px;
}

.error-card p {
    color: #b91c1c;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--tl-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-card p {
    color: #0369a1;
    font-weight: 500;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: var(--tl-muted);
    opacity: 0.9;
}

footer a {
    color: var(--tl-primary-700);
    text-decoration: none;
    margin-right: -4px;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    main {
        padding: 20px;
    }
}

/* Removed endpoint list styling as per new UI */

/* Screen-reader-only utility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important; /* added line */
    border: 0 !important;
}
