.site-container {
    margin-inline: auto;
}
.site-header {
    height: 78px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 20;
}
.header-inner {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 36px;
    align-items: center;
}
.brand {
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 11px;
    min-width: 0;
    color: var(--foreground);
}
.brand-mark {
    width: 31px;
    height: 31px;
    display: inline-block;
    flex: none;
    position: relative;
    border-radius: 50%;
    background: var(--cyan);
    transform: rotate(-26deg);
}
.brand-mark::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 27px;
    top: -6px;
    right: -5px;
    border-radius: 65% 40% 55% 40%;
    background: var(--primary);
}
.brand-mark span {
    position: absolute;
    z-index: 1;
    width: 12px;
    height: 23px;
    left: 8px;
    top: -4px;
    border-radius: 70% 35% 65% 30%;
    background: var(--background);
}
.brand-text {
    display: block;
    font-size: 24px;
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: 0;
    white-space: nowrap;
}
.brand-text > span {
    color: var(--cyan);
}
.brand-text small {
    display: block;
    margin-top: 6px;
    font-size: 9px;
    color: var(--muted-foreground);
    font-weight: 700;
    line-height: 1.2;
}
.primary-nav {
    display: flex;
    align-items: center;
    gap: 33px;
}
.primary-nav a {
    color: var(--foreground);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: color 0.2s;
}
.primary-nav a:hover,
.header-search:hover {
    color: var(--cyan);
}
.header-search {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 3px;
    color: var(--primary);
    background: var(--secondary);
}
.mobile-menu {
    display: none !important;
}

.hero {
    background: var(--primary);
    min-height: 530px;
    position: relative;
    overflow: hidden;
}
.hero-inner {
    min-height: 530px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-content {
    width: min(100%, 72%);
    padding: 56px 0 58px;
    position: relative;
    z-index: 2;
}
.eyebrow,
.section-kicker {
    color: var(--secondary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.eyebrow-line {
    display: inline-block;
    height: 2px;
    width: 20px;
    background: var(--secondary);
}
.hero h1 {
    max-width: 660px;
    margin: 18px 0 13px;
    font-size: clamp(34px, 3.5vw, 42px);
    font-weight: 700;
    line-height: 1.13;
}
.hero-intro {
    max-width: 555px;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 26px;
}
.hero-search-form {
    width: min(100%, 600px);
    min-height: 58px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 19px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--background);
    box-shadow: var(--shadow-card);
    color: var(--muted-foreground);
}
.hero-search-form input {
    min-width: 0;
    width: 100%;
    outline: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: var(--foreground);
}
.hero-search-form input::placeholder {
    color: var(--muted-foreground);
}
.hero-search-form button {
    height: 44px;
    padding-inline: 20px;
}
.quick-links {
    margin-top: 32px;
    max-width: 100%;
}
.quick-links h2 {
    font-weight: 900;
    font-size: 14px;
    margin: 0 0 13px;
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.quick-link {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 12px;
    min-height: 57px;
    padding: 20px 12px;
    border-radius: 3px;
    color: var(--primary);
    background: var(--background);
    box-shadow: var(--shadow-card);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px oklch(0.3 0.08 255 / 14%);
}
.quick-link > svg:first-child {
    color: var(--cyan);
}
.quick-arrow {
    background: var(--muted);
    padding: 2px;
    border-radius: 50%;
}
.hero-portrait {
    position: absolute;
    right: -20px;
    top: 0;
    height: 100%;
    width: 410px;
    overflow: hidden;
    border-radius: 55% 0 0 55%;
    z-index: -1;
}
.hero-portrait img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 63% center;
}
.hero-decoration {
    pointer-events: none;
    position: absolute;
    border: 1px solid oklch(1 0 0 / 70%);
    border-radius: 50%;
}
.hero-decoration-one {
    width: 530px;
    height: 530px;
    right: 120px;
    top: -90px;
}
.hero-decoration-two {
    width: 360px;
    height: 360px;
    right: 250px;
    top: 70px;
}

.catalogue-section,
.themes-section {
    padding: 72px 0 80px;
}
.themes-section {
    background: var(--color-white);
    border-top: 1px solid var(--border);
}
.section-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
    margin-bottom: 25px;
}
.section-top h2 {
    line-height: 1.2;
    margin: 7px 0 5px;
}
.section-top p {
    line-height: 1.5;
    margin: 0;
    color: var(--muted-foreground);
}
.view-switch {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--background);
}
.view-switch button {
    width: 31px;
    height: 31px;
    box-shadow: none;
}
.level-grid,
.theme-grid {
    display: grid;
    gap: 14px;
}
.level-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.theme-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.catalogue-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    min-width: 0;
    min-height: 178px;
    padding: 23px 22px 20px;
    border-radius: 0px;
    border: 0.5px solid var(--border);
    border-bottom: 4px solid var(--primary);
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    white-space: normal;
    transition:
        border-color 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}
.catalogue-card:hover,
.catalogue-card.selected {
    border-bottom-color: #49a3ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px oklch(0.3 0.08 255 / 11%);
}
.catalogue-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 66px;
    height: 66px;
    color: var(--primary);
    border-radius: 5px;
    margin-bottom: 20px;
}
.catalogue-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
}
.catalogue-count {
    display: block;
    font-size: 12px;
    color: var(--muted-foreground);
    margin-top: 6px;
}
.catalogue-arrow {
    position: absolute;
    right: 17px;
    bottom: 17px;
    color: var(--primary);
}
.catalog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    min-width: 0;
    min-height: 178px;
    padding: 23px 22px 20px;
    border-radius: 0px;
    border: 0.5px solid var(--border);
    border-bottom: 4px solid var(--primary);
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    white-space: normal;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.theme-card {
    min-height: 175px;
}
.list-view {
    grid-template-columns: 1fr;
}
.list-view .catalogue-card {
    min-height: 120px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 15px;
    padding: 14px 54px 14px 18px;
}
.list-view .catalogue-icon {
    grid-row: span 2;
    margin: 0;
}
.list-view .catalogue-title {
    grid-column: 2;
    align-self: end;
    margin-left: 20px;
}
.list-view .catalogue-count {
    grid-column: 2;
    align-self: start;
    margin-top: 2px;
    margin-left: 20px;
}
.list-view .catalogue-arrow {
    right: 20px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}
.selection-panel {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    padding: 25px 28px;
    border-left: 3px solid var(--cyan);
    background: var(--secondary);
}
.selection-panel h3 {
    margin: 5px 0 0;
    font-size: 21px;
    font-weight: 900;
}
.selection-panel ul {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
}
.selection-panel li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}
.selection-panel li svg {
    flex: none;
    margin-top: 2px;
    color: var(--primary);
}
.search-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 20px;
    font-size: 13px;
    font-weight: 800;
}
.search-status button {
    margin-left: 4px;
}
.empty-results {
    padding: 45px 22px;
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted-foreground);
}

.site-footer {
    background: var(--foreground);
    color: var(--primary-foreground);
    border-top: 4px solid var(--surface-yellow);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 1fr 1.35fr;
    gap: 35px;
    padding-block: 54px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    line-height: 1;
}
.footer-brand > span:last-child > span {
    color: var(--cyan);
}
.footer-intro p {
    margin: 18px 0 0;
    color: var(--accent);
    font-size: 13px;
}
.footer-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}
.footer-column h2 {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 900;
    margin: 0 0 8px;
    color: var(--surface-yellow);
}
.footer-column a,
.footer-column p {
    color: var(--accent);
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: anywhere;
}
.footer-column a {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
}
.footer-column a:hover {
    color: var(--primary-foreground);
}
.footer-column svg {
    flex: none;
    margin-top: 1px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid oklch(1 0 0 / 16%);
    color: var(--accent);
    font-size: 11px;
}

@media (max-width: 1020px) {
    .primary-nav {
        gap: 18px;
    }
    .hero-portrait {
        width: 320px;
        right: -85px;
        opacity: 0.85;
    }
    .hero-content {
        width: min(100%, 665px);
    }
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .site-container {
    }
    .site-header {
        height: 68px;
    }
    .header-inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
    }
    .brand-text {
        font-size: 21px;
    }
    .brand-text small {
        font-size: 8px;
    }
    .header-search {
        width: 36px;
        height: 36px;
    }
    .mobile-menu {
        display: inline-flex !important;
    }
    .primary-nav {
        position: absolute;
        display: none;
        top: 68px;
        left: 0;
        right: 0;
        padding: 14px 18px 22px;
        background: var(--background);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-card);
    }
    .primary-nav.is-open {
        display: grid;
        gap: 0;
    }
    .primary-nav a {
        padding: 13px 4px;
        border-bottom: 1px solid var(--border);
    }
    .hero,
    .hero-inner {
        min-height: auto;
    }
    .hero-inner {
        display: block;
    }
    .hero-content {
        padding: 48px 0 36px;
    }
    .hero h1 {
        max-width: 580px;
        font-size: 38px;
    }
    .hero-portrait {
        display: none;
    }
    .hero-decoration-one {
        right: -360px;
    }
    .hero-decoration-two {
        right: -240px;
    }
    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .catalogue-section,
    .themes-section {
        padding: 54px 0 62px;
    }
    .level-grid,
    .theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .selection-panel {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .selection-panel ul {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .hero-content {
        padding-top: 39px;
    }
    .hero h1 {
        font-size: 33px;
    }
    .hero-intro {
        font-size: 14px;
    }
    .hero-search-form {
        grid-template-columns: 20px minmax(0, 1fr);
        padding: 11px 12px;
    }
    .hero-search-form button {
        grid-column: 1 / -1;
        width: 100%;
    }
    .quick-grid {
        gap: 8px;
    }
    .quick-link {
        min-height: 67px;
        padding: 9px;
        gap: 5px;
        grid-template-columns: 24px minmax(0, 1fr) 14px;
        font-size: 10px;
    }
    .quick-link > svg:first-child {
        width: 21px;
    }
    .quick-arrow {
        width: 14px;
    }
    .section-top {
        align-items: start;
    }
    .section-top h2 {
        font-size: 25px;
    }
    .section-top p {
        font-size: 13px;
    }
    .level-grid,
    .theme-grid {
        gap: 9px;
    }
    .catalogue-card {
        padding: 16px 13px 19px;
        min-height: 160px;
    }
    .catalogue-icon {
        width: 39px;
        height: 39px;
        margin-bottom: 15px;
    }
    .catalogue-title {
        font-size: 13px;
    }
    .catalogue-count {
        font-size: 11px;
    }
    .catalogue-arrow {
        right: 11px;
        bottom: 11px;
        width: 15px;
    }
    .list-view .catalogue-card {
        min-height: 75px;
    }
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 20px;
        padding-block: 42px;
    }
    .footer-intro {
        grid-column: 1 / -1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }
}

.btn {
    display: flex;
    cursor: pointer;
    height: 2.25rem; /* 36px */
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* 8px */
    border-radius: 0.375rem; /* 6px */
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25rem; /* 20px */
    transition-property: opacity, background-color, color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    border: 1px solid var(--border-dark, #cbd5e1);
    background-color: #ffffff;
    color: var(--text-secondary, #475569);
    padding-left: 1rem;
    padding-right: 1rem;
    --tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.05));
    box-shadow:
        var(--tw-inset-shadow), var(--tw-inset-ring-shadow),
        var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.btn-primary {
    background-color: var(--primary, #2563eb);
}

.btn-warning {
}

.btn:hover {
    border-color: var(--primary, #2563eb);
    color: var(--primary, #2563eb);
}

.btn:disabled {
    opacity: 0.8;
}

.form-control {
  height: 2.25rem; /* 36px */
  width: 100%;
  border-radius: 0.375rem; /* 6px */
  border-width: 1px;
  border-style: solid;
  border-color: var(--border-dark, #cbd5e1);
  background-color: var(--app-bg, #ffffff);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 14px;
  line-height: 1.25rem; /* 20px */
  color: var(--foreground, #0f172a);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-xs */
  transition-property: border-color, box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted, #94a3b8);
}

.form-control:focus {
  border-color: rgb(from var(--text-muted, #94a3b8) r g b / 0.6);
  box-shadow: 0 0 0 3px rgb(from var(--text-muted, #94a3b8) r g b / 0.15);
}

.textarea-control {
  /* Inherit your existing form styles */
  width: 100%;
  border-radius: 0.375rem; /* 6px */
  border-width: 1px;
  border-style: solid;
  border-color: var(--border-dark, #cbd5e1);
  background-color: var(--app-bg, #ffffff);
  padding: 0.75rem; /* vertical & horizontal padding */
  font-size: 14px;
  line-height: 1.25rem; /* 20px */
  color: var(--foreground, #0f172a);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition-property: border-color, box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  outline: none;

  /* --- Fixed Height & Textarea Specific Fixes --- */
  height: 120px;          /* Set your desired fixed height here */
  min-height: 120px;      /* Prevents flex/grid containers from squishing it */
  max-height: 120px;      /* Locks the height so it doesn't grow */
  resize: none;           /* Disables the manual resize handle */
  overflow-y: auto;       /* Adds a scrollbar if text exceeds the height */
}

.textarea-control::placeholder {
  color: var(--text-muted, #94a3b8);
}

.textarea-control:focus {
  border-color: rgb(from var(--text-muted, #94a3b8) r g b / 0.6);
  box-shadow: 0 0 0 3px rgb(from var(--text-muted, #94a3b8) r g b / 0.15);
}
