:root {
    --fhh-ink: #173247;
    --fhh-ink-2: #223d52;
    --fhh-blue: #2d80c2;
    --fhh-blue-dark: #20699d;
    --fhh-green: #21ad4b;
    --fhh-green-dark: #148a39;
    --fhh-slate: #657681;
    --fhh-soft: #edf4f6;
    --fhh-bg: #f6f8f7;
    --fhh-panel: #ffffff;
    --fhh-line: #d8e2e6;
    --fhh-line-strong: #bfccd2;
    --fhh-warm: #f4f0e8;
    --fhh-error: #a83325;
    --fhh-error-bg: #fff0ed;
    --fhh-success-bg: #eaf6ee;
    --fhh-radius-lg: 30px;
    --fhh-radius: 20px;
    --fhh-radius-sm: 13px;
    --fhh-shadow: 0 22px 60px rgba(23, 50, 71, 0.10);
    --fhh-shadow-soft: 0 12px 34px rgba(23, 50, 71, 0.07);
    --fhh-container: 1220px;
    --fhh-gradient: linear-gradient(135deg, var(--fhh-green) 0%, var(--fhh-blue) 100%);
    --fhh-grid: linear-gradient(rgba(23, 50, 71, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 50, 71, 0.05) 1px, transparent 1px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--fhh-ink);
    background:
        radial-gradient(circle at 14% 6%, rgba(33, 173, 75, 0.10), transparent 30%),
        radial-gradient(circle at 86% 10%, rgba(45, 128, 194, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, var(--fhh-bg) 34%, #ffffff 100%);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--fhh-blue-dark);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--fhh-ink);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
    margin-top: 0;
}

ul,
ol {
    padding-left: 1.2rem;
}

.container {
    width: min(var(--fhh-container), calc(100% - 2rem));
    margin-inline: auto;
}

.narrow-shell {
    width: min(860px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-main {
    min-height: calc(100vh - 320px);
}

.concept-strip {
    color: #ffffff;
    background: var(--fhh-ink);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.concept-strip__inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.48rem;
}

.concept-strip__note {
    color: rgba(255, 255, 255, 0.72);
    text-align: right;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(216, 226, 230, 0.9);
    backdrop-filter: blur(18px);
}

.header-row {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--fhh-ink);
    text-decoration: none;
    min-width: 235px;
}

.brand img {
    width: 76px;
    height: auto;
}

.brand__text {
    display: block;
    max-width: 145px;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--fhh-slate);
    font-size: 0.93rem;
    font-weight: 800;
    text-decoration: none;
    padding: 0.55rem 0.1rem;
    border-bottom: 2px solid transparent;
}

.nav-links a.is-active,
.nav-links a:hover {
    color: var(--fhh-ink);
    border-bottom-color: var(--fhh-green);
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--fhh-line);
    border-radius: 999px;
    background: var(--fhh-soft);
    font-size: 0.86rem;
    font-weight: 800;
}

.user-pill small {
    color: var(--fhh-blue-dark);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.78rem 0.9rem;
    border: 1px solid var(--fhh-line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--fhh-ink);
    font-weight: 900;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    content: "";
}

.nav-toggle span {
    position: relative;
}

.nav-toggle span::before {
    position: absolute;
    top: -5px;
}

.nav-toggle span::after {
    position: absolute;
    top: 5px;
}

.notice-stack {
    padding-top: 1rem;
}

.notice {
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem;
    border: 1px solid var(--fhh-line);
    border-radius: var(--fhh-radius-sm);
    background: #ffffff;
}

.notice strong {
    display: block;
    margin-bottom: 0.25rem;
}

.notice--success {
    background: var(--fhh-success-bg);
    border-color: rgba(33, 173, 75, 0.22);
}

.notice--error {
    background: var(--fhh-error-bg);
    border-color: rgba(168, 51, 37, 0.22);
    color: #581f17;
}

.notice--soft {
    display: grid;
    gap: 0.25rem;
    background: var(--fhh-soft);
}

.notice-list {
    margin-bottom: 0;
}

.hero-section,
.page-section,
.section {
    padding: 3rem 0;
}

.hero-section--platform {
    padding-top: 1.35rem;
}

.page-section--package {
    background:
        var(--fhh-grid),
        linear-gradient(180deg, #ffffff 0%, #f4f7f8 100%);
    background-size: auto, 28px 28px, auto;
}

.section--line {
    border-block: 1px solid var(--fhh-line);
    background: rgba(255, 255, 255, 0.72);
}

.section--soft {
    background: linear-gradient(180deg, rgba(237, 244, 246, 0.72), rgba(255, 255, 255, 0.94));
    border-top: 1px solid var(--fhh-line);
}

.hero-grid,
.search-layout,
.detail-layout,
.build-layout,
.junction-layout,
.split-section,
.collaboration-layout,
.package-layout,
.auth-shell,
.footer-grid {
    display: grid;
    gap: 1.5rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
    align-items: start;
    margin-top: 2rem;
}

.hero-copy h1,
.page-header h1,
.detail-header h1,
.auth-aside h1,
.section-heading h1 {
    margin-bottom: 1rem;
    color: var(--fhh-ink);
    font-size: clamp(2.3rem, 5vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.page-header h1,
.detail-header h1,
.auth-aside h1,
.section-heading h1 {
    font-size: clamp(2rem, 3.6vw, 3.8rem);
}

.section-heading h2,
.content-card h2,
.sidebar-card h2,
.page-note h2,
.process-card h3,
.scope-card h3 {
    letter-spacing: -0.025em;
}

.lead,
.hero-copy .lead,
.page-header .lead,
.detail-header .lead,
.section-heading p,
.auth-aside p {
    max-width: 68ch;
    color: var(--fhh-slate);
    font-size: 1.08rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    color: var(--fhh-slate);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 22px;
    height: 2px;
    background: var(--fhh-green);
    content: "";
}

.eyebrow--accent {
    color: var(--fhh-green-dark);
}

.card,
.process-card,
.wall-card,
.junction-card,
.project-card,
.package-detail-card,
.candidate-card {
    border: 1px solid var(--fhh-line);
    border-radius: var(--fhh-radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--fhh-shadow-soft);
}

.card {
    padding: 1.3rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.72rem 1.08rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--fhh-ink);
    color: #ffffff;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--fhh-ink-2);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(23, 50, 71, 0.16);
}

.button--ghost {
    border-color: var(--fhh-line-strong);
    background: #ffffff;
    color: var(--fhh-ink);
}

.button--ghost:hover {
    background: var(--fhh-soft);
    color: var(--fhh-ink);
}

.button--secondary {
    background: var(--fhh-green);
    color: #ffffff;
}

.button--secondary:hover {
    background: var(--fhh-green-dark);
}

.button--small {
    min-height: 35px;
    padding: 0.56rem 0.8rem;
    font-size: 0.86rem;
}

.button--wide {
    width: 100%;
}

.button--disabled,
.button--disabled:hover {
    pointer-events: none;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.hero-actions,
.page-actions,
.inline-actions,
.card-actions,
.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-actions {
    margin: 1.6rem 0;
}

.page-actions {
    margin: 1.2rem 0 1.6rem;
}

.page-actions--right {
    justify-content: flex-end;
}

.page-actions--stack {
    align-items: stretch;
    flex-direction: column;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.stat-card {
    padding: 1rem;
    border: 1px solid var(--fhh-line);
    border-radius: var(--fhh-radius-sm);
    background: #ffffff;
}

.stat-card strong {
    display: block;
    color: var(--fhh-ink);
    font-size: 2rem;
    line-height: 1;
}

.stat-card span {
    color: var(--fhh-slate);
    font-size: 0.88rem;
    font-weight: 800;
}

.technical-panel {
    overflow: hidden;
    border: 1px solid var(--fhh-line);
    border-radius: var(--fhh-radius-lg);
    background:
        var(--fhh-grid),
        linear-gradient(145deg, #ffffff, #edf5f7);
    background-size: 28px 28px, auto;
    box-shadow: var(--fhh-shadow);
}

.technical-panel__drawing {
    padding: 1.3rem 1.3rem 0;
}

.technical-panel__content {
    padding: 1.2rem 1.3rem 1.35rem;
}

.hero-search-card {
    margin-top: 1rem;
}

.platform-steps {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--fhh-line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--fhh-shadow-soft);
}

.platform-step {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 66px;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    color: var(--fhh-slate);
    text-decoration: none;
    border-right: 1px solid var(--fhh-line);
}

.platform-step:last-child {
    border-right: 0;
}

.platform-step__number {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid var(--fhh-line-strong);
    border-radius: 50%;
    background: var(--fhh-soft);
    color: var(--fhh-ink);
    font-size: 0.8rem;
    font-weight: 900;
}

.platform-step strong,
.platform-step small {
    display: block;
}

.platform-step strong {
    color: var(--fhh-ink);
    font-size: 0.86rem;
}

.platform-step small {
    font-size: 0.72rem;
    line-height: 1.1;
}

.platform-step.is-active {
    background: var(--fhh-ink);
    color: #ffffff;
}

.platform-step.is-active strong,
.platform-step.is-active small {
    color: #ffffff;
}

.platform-step.is-active .platform-step__number {
    border-color: rgba(255, 255, 255, 0.5);
    background: #ffffff;
    color: var(--fhh-ink);
}

.section-heading {
    max-width: 790px;
    margin-bottom: 1.4rem;
}

.section-heading--tight {
    margin-bottom: 1rem;
}

.process-grid,
.feature-grid,
.results-grid,
.wall-card-grid,
.junction-grid,
.project-grid,
.candidate-grid,
.scope-grid {
    display: grid;
    gap: 1rem;
}

.process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card {
    position: relative;
    padding: 1.25rem;
    min-height: 240px;
}

.process-card span {
    display: inline-flex;
    margin-bottom: 1.1rem;
    color: var(--fhh-green-dark);
    font-weight: 900;
}

.process-card h3 {
    margin-bottom: 0.65rem;
    font-size: 1.28rem;
}

.process-card p {
    color: var(--fhh-slate);
}

.process-card a {
    position: absolute;
    bottom: 1.25rem;
    font-weight: 900;
}

.split-section {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    align-items: start;
}

.scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scope-card {
    padding: 1.15rem;
    border-radius: var(--fhh-radius);
    border: 1px solid var(--fhh-line);
    background: #ffffff;
}

.scope-card--in {
    border-left: 6px solid var(--fhh-green);
}

.scope-card--out {
    border-left: 6px solid var(--fhh-blue);
}

.page-header {
    margin: 2rem 0 1.5rem;
}

.page-header--split {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1.5rem;
}

.page-header__meta {
    min-width: 190px;
    text-align: center;
}

.page-header__meta strong {
    display: block;
    font-size: 3rem;
    line-height: 1;
}

.page-header__meta span {
    color: var(--fhh-slate);
    font-weight: 800;
}

.page-note {
    max-width: 390px;
}

.wall-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wall-card {
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wall-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fhh-shadow);
}

.wall-card__link {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.wall-card__image {
    display: block;
    padding: 1rem;
    background:
        var(--fhh-grid),
        var(--fhh-soft);
    background-size: 22px 22px, auto;
}

.wall-card__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.wall-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.wall-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    color: var(--fhh-slate);
    font-size: 0.84rem;
    font-weight: 800;
}

.wall-card h2 {
    font-size: 1.16rem;
    line-height: 1.18;
}

.wall-card p {
    flex: 1;
    color: var(--fhh-slate);
}

.build-layout {
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
}

.build-illustration {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--fhh-radius-sm);
    background:
        var(--fhh-grid),
        var(--fhh-soft);
    background-size: 22px 22px, auto;
}

.layer-list {
    display: grid;
    gap: 0.55rem;
    padding-left: 0;
    counter-reset: layers;
    list-style: none;
}

.layer-list li {
    position: relative;
    padding: 0.75rem 0.75rem 0.75rem 3rem;
    border: 1px solid var(--fhh-line);
    border-radius: var(--fhh-radius-sm);
    background: #ffffff;
}

.layer-list li::before {
    position: absolute;
    top: 50%;
    left: 0.8rem;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--fhh-ink);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
    counter-increment: layers;
    content: counter(layers);
}

.build-context {
    min-width: 310px;
    padding: 1rem;
    border: 1px solid var(--fhh-line);
    border-radius: var(--fhh-radius);
    background: #ffffff;
    box-shadow: var(--fhh-shadow-soft);
}

.context-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.context-grid span {
    display: block;
    padding: 0.7rem;
    border-radius: var(--fhh-radius-sm);
    background: var(--fhh-soft);
    color: var(--fhh-slate);
    font-size: 0.9rem;
}

.context-grid strong {
    display: block;
    color: var(--fhh-ink);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.junction-layout {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.36fr);
    align-items: start;
}

.junction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.junction-card {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.85rem;
    padding: 0.85rem;
    cursor: pointer;
}

.junction-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.junction-card:has(input:checked) {
    border-color: var(--fhh-green);
    box-shadow: 0 0 0 4px rgba(33, 173, 75, 0.14);
}

.junction-card__visual {
    position: relative;
    display: grid;
    place-items: center;
    border-radius: var(--fhh-radius-sm);
    background: var(--fhh-soft);
}

.junction-card__visual img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 0.55rem;
}

.junction-card__visual strong {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    padding: 0.18rem 0.35rem;
    border-radius: 999px;
    background: var(--fhh-ink);
    color: #ffffff;
    font-size: 0.72rem;
}

.junction-card__content {
    display: grid;
    align-content: start;
    gap: 0.45rem;
}

.junction-card__content b {
    font-size: 1.05rem;
}

.junction-card__content small {
    color: var(--fhh-slate);
}

.search-layout {
    grid-template-columns: minmax(280px, 0.32fr) minmax(0, 1fr);
    align-items: start;
}

.filter-panel {
    position: sticky;
    top: 116px;
}

.filter-panel--static {
    position: static;
}

.mobile-filter-bar {
    display: none;
    margin-bottom: 1rem;
}

.results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-card {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    min-height: 100%;
}

.result-card__top,
.review-card__header,
.project-card__header,
.candidate-card__top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.75rem;
}

.result-card h3,
.project-card h2,
.package-detail-card h2,
.review-card h2,
.shortlist-item h2 {
    margin-bottom: 0.35rem;
    line-height: 1.15;
}

.result-card h3 a,
.project-card h2 a,
.package-detail-card h2 a,
.review-card h2 a,
.shortlist-item h2 a {
    color: var(--fhh-ink);
    text-decoration: none;
}

.result-card h3 a:hover,
.project-card h2 a:hover,
.package-detail-card h2 a:hover,
.review-card h2 a:hover,
.shortlist-item h2 a:hover {
    color: var(--fhh-blue-dark);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.tag {
    padding: 0.42rem 0.62rem;
    border: 1px solid var(--fhh-line);
    background: var(--fhh-soft);
    color: var(--fhh-ink);
}

.tag--soft {
    background: #ffffff;
    color: var(--fhh-slate);
}

.tag--accent {
    border-color: rgba(33, 173, 75, 0.24);
    background: rgba(33, 173, 75, 0.10);
    color: var(--fhh-green-dark);
}

.pill {
    padding: 0.43rem 0.65rem;
    background: var(--fhh-ink);
    color: #ffffff;
}

.metric-row,
.mini-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.metric-row span,
.mini-metrics span {
    padding: 0.65rem 0.75rem;
    border-radius: var(--fhh-radius-sm);
    background: var(--fhh-soft);
    color: var(--fhh-slate);
    font-size: 0.88rem;
}

.metric-row strong,
.mini-metrics strong {
    display: block;
    color: var(--fhh-ink);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.active-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.pagination-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.4rem;
}

.pagination-summary {
    color: var(--fhh-slate);
    font-weight: 900;
}

.shortlist-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.shortlist-toolbar__controls {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) minmax(180px, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
}

.candidate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.candidate-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.candidate-card input {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 22px;
    height: 22px;
    accent-color: var(--fhh-green);
}

.candidate-card__body {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.candidate-card:has(input:checked) {
    border-color: var(--fhh-green);
    box-shadow: 0 0 0 4px rgba(33, 173, 75, 0.14);
}

.candidate-card__footer {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    color: var(--fhh-slate);
    font-size: 0.88rem;
    font-weight: 800;
}

.login-callout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
    padding: 1.2rem;
}

.project-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.1rem;
}

.stack-list {
    display: grid;
    gap: 1rem;
}

.shortlist-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.2rem;
    align-items: start;
}

.shortlist-item__content {
    display: grid;
    gap: 0.8rem;
}

.shortlist-item__actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.32fr);
    gap: 1.5rem;
    align-items: end;
    margin: 2rem 0 1.5rem;
}

.detail-hero-card {
    padding: 1rem;
    border: 1px solid var(--fhh-line);
    border-radius: var(--fhh-radius);
    background: #ffffff;
    box-shadow: var(--fhh-shadow-soft);
}

.detail-hero-card img {
    margin-bottom: 0.8rem;
    border-radius: var(--fhh-radius-sm);
    background: var(--fhh-soft);
}

.detail-hero-card strong,
.detail-hero-card span {
    display: block;
}

.detail-hero-card span {
    color: var(--fhh-slate);
    font-size: 0.9rem;
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
    align-items: start;
}

.detail-main,
.detail-sidebar {
    display: grid;
    gap: 1rem;
}

.detail-sidebar {
    position: sticky;
    top: 116px;
}

.content-card {
    padding: 1.45rem;
}

.prose {
    color: var(--fhh-ink);
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.data-table th,
.data-table td {
    padding: 0.85rem;
    border-bottom: 1px solid var(--fhh-line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--fhh-slate);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.file-list,
.mini-file-list {
    display: grid;
    gap: 0.65rem;
}

.file-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
    border: 1px solid var(--fhh-line);
    border-radius: var(--fhh-radius-sm);
    background: var(--fhh-soft);
}

.mini-file-list {
    margin-top: 0.75rem;
}

.mini-file-list a {
    display: block;
    padding: 0.5rem 0;
    border-top: 1px solid var(--fhh-line);
    font-size: 0.9rem;
    font-weight: 800;
}

.collaboration-layout {
    grid-template-columns: minmax(260px, 0.28fr) minmax(0, 1fr);
    align-items: start;
}

.collaboration-summary {
    position: sticky;
    top: 116px;
}

.collaboration-list {
    display: grid;
    gap: 1rem;
}

.review-card {
    display: grid;
    gap: 1rem;
}

.comment-panel {
    display: grid;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fhh-line);
}

.comment-list {
    display: grid;
    gap: 0.65rem;
}

.comment {
    padding: 0.8rem;
    border-radius: var(--fhh-radius-sm);
    background: var(--fhh-soft);
}

.comment p {
    margin-bottom: 0.25rem;
}

.comment small {
    color: var(--fhh-slate);
    font-weight: 800;
}

.comment-form {
    display: grid;
    gap: 0.65rem;
}

.package-cover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr) auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.2rem;
}

.site-link-card {
    padding: 1rem;
    border: 1px solid var(--fhh-line);
    border-radius: var(--fhh-radius-sm);
    background: var(--fhh-soft);
}

.package-layout {
    grid-template-columns: minmax(260px, 0.28fr) minmax(0, 1fr);
    align-items: start;
}

.package-sidebar {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 116px;
}

.checklist {
    display: grid;
    gap: 0.55rem;
    padding-left: 1.35rem;
}

.site-pack-list {
    display: grid;
    gap: 1rem;
}

.package-detail-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(230px, 0.3fr);
    gap: 1rem;
    padding: 1rem;
    box-shadow: none;
}

.package-detail-card__number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--fhh-ink);
    color: #ffffff;
    font-weight: 900;
}

.package-detail-card__main {
    display: grid;
    gap: 0.65rem;
}

.package-detail-card__aside {
    display: grid;
    align-content: start;
    gap: 0.65rem;
}

.project-selector {
    display: flex;
    align-items: end;
    gap: 0.6rem;
    min-width: min(440px, 100%);
    padding: 1rem;
    border: 1px solid var(--fhh-line);
    border-radius: var(--fhh-radius);
    background: #ffffff;
    box-shadow: var(--fhh-shadow-soft);
}

.project-selector label {
    display: grid;
    flex: 1;
    gap: 0.35rem;
    color: var(--fhh-slate);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-card {
    padding: 1.35rem;
}

.form-card--compact {
    width: min(380px, 100%);
}

.stack-form {
    display: grid;
    gap: 1rem;
}

.field,
.input-suffix {
    display: grid;
    gap: 0.38rem;
}

.field label,
.field-label {
    color: var(--fhh-ink);
    font-size: 0.86rem;
    font-weight: 900;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.field-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid var(--fhh-line-strong);
    border-radius: 13px;
    background: #ffffff;
    color: var(--fhh-ink);
    outline: none;
}

.input,
.select {
    min-height: 45px;
    padding: 0.72rem 0.85rem;
}

.textarea {
    padding: 0.8rem 0.9rem;
    resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--fhh-blue);
    box-shadow: 0 0 0 4px rgba(45, 128, 194, 0.14);
}

.input-suffix {
    position: relative;
}

.input-suffix span {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fhh-slate);
    font-size: 0.82rem;
    font-weight: 900;
}

.input-suffix .input {
    padding-right: 4.6rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.checkbox-grid--one {
    grid-template-columns: 1fr;
}

.checkbox-group {
    padding: 0.85rem;
    border: 1px solid var(--fhh-line);
    border-radius: var(--fhh-radius-sm);
    background: var(--fhh-soft);
}

.checkbox-group p {
    margin-bottom: 0.55rem;
    font-weight: 900;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--fhh-slate);
    font-weight: 700;
}

.checkbox-row input {
    margin-top: 0.2rem;
    accent-color: var(--fhh-green);
}

.checkbox-row--inline {
    align-items: center;
}

.form-actions--split {
    justify-content: space-between;
}

.copy-panel {
    display: flex;
    gap: 0.55rem;
}

.copy-panel .input {
    min-width: 0;
}

.auth-shell {
    grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.6fr);
    align-items: center;
}

.auth-shell--wide {
    grid-template-columns: minmax(0, 0.6fr) minmax(480px, 0.95fr);
}

.auth-aside {
    padding: 2rem 0;
}

.auth-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.2rem;
}

.auth-feature-list span {
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--fhh-ink);
    font-weight: 900;
    box-shadow: var(--fhh-shadow-soft);
}

.auth-panel {
    padding: 1.5rem;
}

.panel-note,
.empty-state {
    padding: 1.35rem;
}

.empty-state {
    border: 1px dashed var(--fhh-line-strong);
    border-radius: var(--fhh-radius);
    background: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.empty-state h2,
.empty-state h3 {
    margin-bottom: 0.5rem;
}

.muted {
    color: var(--fhh-slate);
}

.plain-list {
    display: grid;
    gap: 0.5rem;
    padding-left: 0;
    list-style: none;
}

.plain-list li {
    position: relative;
    padding-left: 1.25rem;
}

.plain-list li::before {
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fhh-green);
    content: "";
}

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

.site-footer {
    padding: 2.4rem 0 1.4rem;
    border-top: 1px solid var(--fhh-line);
    background: #ffffff;
}

.footer-grid {
    grid-template-columns: minmax(0, 1fr) 0.36fr 0.36fr;
}

.footer-block--brand {
    display: flex;
    gap: 1rem;
}

.footer-mark {
    width: 58px;
    height: fit-content;
}

.footer-title {
    margin-bottom: 0.4rem;
    color: var(--fhh-ink);
    font-weight: 900;
}

.footer-copy {
    max-width: 54ch;
    color: var(--fhh-slate);
}

.footer-links {
    display: grid;
    gap: 0.35rem;
}

.footer-links a {
    color: var(--fhh-slate);
    font-weight: 800;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--fhh-ink);
}

.footer-bottom {
    padding-top: 1.2rem;
    margin-top: 1.4rem;
    border-top: 1px solid var(--fhh-line);
    color: var(--fhh-slate);
}

@media (max-width: 1120px) {
    .platform-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-radius: var(--fhh-radius);
    }

    .platform-step:nth-child(4n) {
        border-right: 0;
    }

    .hero-grid,
    .build-layout,
    .junction-layout,
    .split-section,
    .detail-layout,
    .detail-header,
    .collaboration-layout,
    .package-layout,
    .auth-shell,
    .auth-shell--wide {
        grid-template-columns: 1fr;
    }

    .detail-sidebar,
    .filter-panel,
    .collaboration-summary,
    .package-sidebar {
        position: static;
    }

    .wall-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .junction-grid,
    .candidate-grid,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .package-cover {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .concept-strip__inner {
        display: block;
    }

    .concept-strip__note {
        display: none;
    }

    .header-row {
        min-height: 74px;
    }

    .brand img {
        width: 58px;
    }

    .brand__text {
        font-size: 0.82rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: calc(100% + 0.6rem);
        display: none;
        align-items: stretch;
        flex-direction: column;
        padding: 1rem;
        border: 1px solid var(--fhh-line);
        border-radius: var(--fhh-radius);
        background: #ffffff;
        box-shadow: var(--fhh-shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-links,
    .nav-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--fhh-line);
    }

    .process-grid,
    .results-grid,
    .scope-grid,
    .footer-grid,
    .shortlist-toolbar,
    .shortlist-item,
    .package-detail-card {
        grid-template-columns: 1fr;
    }

    .shortlist-toolbar__controls {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .search-layout {
        grid-template-columns: 1fr;
    }

    .mobile-filter-bar {
        display: block;
    }

    .filter-panel[data-filter-panel] {
        display: none;
    }

    .filter-panel[data-filter-panel].is-open {
        display: block;
    }

    .copy-panel,
    .project-selector,
    .login-callout {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header--split {
        display: grid;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .container,
    .narrow-shell {
        width: min(100% - 1rem, var(--fhh-container));
    }

    .hero-section,
    .page-section,
    .section {
        padding: 2rem 0;
    }

    .platform-steps {
        grid-template-columns: 1fr;
        border-radius: var(--fhh-radius);
    }

    .platform-step {
        border-right: 0;
        border-bottom: 1px solid var(--fhh-line);
    }

    .platform-step:last-child {
        border-bottom: 0;
    }

    .hero-stats,
    .wall-card-grid,
    .junction-grid,
    .candidate-grid,
    .project-grid,
    .field-grid,
    .checkbox-grid,
    .context-grid {
        grid-template-columns: 1fr;
    }

    .junction-card {
        grid-template-columns: 82px 1fr;
    }

    .form-actions--split {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .inline-actions .button,
    .card-actions .button,
    .project-card__actions .button,
    .shortlist-item__actions .button {
        width: auto;
    }
}

@media print {
    .site-header,
    .site-footer,
    .platform-steps,
    .project-selector,
    .page-actions,
    .button,
    .copy-panel button {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #000000;
    }

    .page-section {
        padding: 0;
    }

    .card,
    .package-detail-card {
        box-shadow: none;
        break-inside: avoid;
    }

    .container {
        width: 100%;
    }

    a {
        color: #000000;
    }
}
