/* Milk + Honey public-facing styles.
   Scoped under .mhs-root so shortcodes don't collide with the active theme. */

.mhs-root {
    font-family: var(--mh-font-body);
    color: var(--mh-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.mhs-root * { box-sizing: border-box; }
.mhs-root h1, .mhs-root h2, .mhs-root h3, .mhs-root h4 {
    font-family: var(--mh-font-display);
    color: var(--mh-teal);
    margin: 0 0 0.5em;
    line-height: 1.2;
}
.mhs-root p { margin: 0 0 1em; }
.mhs-root a { color: var(--mh-teal); text-decoration: underline; }

/* Page container */
.mhs-screen {
    min-height: 70vh;
    background: var(--mh-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}
.mhs-screen::before,
.mhs-screen::after {
    content: "";
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: 0.1;
    pointer-events: none;
}
.mhs-screen::before {
    width: 24rem; height: 24rem;
    top: 0; right: 0;
    background: var(--mh-teal);
    transform: translate(30%, -30%);
}
.mhs-screen::after {
    width: 16rem; height: 16rem;
    bottom: 0; left: 0;
    background: var(--mh-gold);
    transform: translate(-30%, 30%);
}

.mhs-stack { display: flex; flex-direction: column; gap: 1rem; }
.mhs-stack-sm { gap: 0.5rem; }
.mhs-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.mhs-center { text-align: center; }
.mhs-muted { color: var(--mh-text-muted); }
.mhs-small { font-size: 0.85rem; }

/* Card */
.mhs-card {
    background: #fff;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius-lg);
    box-shadow: var(--mh-shadow-card);
    padding: 1.5rem;
}
.mhs-card-lg { padding: 2rem; border-radius: var(--mh-radius-xl); box-shadow: var(--mh-shadow-pop); }

/* Hero */
.mhs-hero { position: relative; z-index: 1; max-width: 28rem; width: 100%; text-align: center; }
.mhs-hero h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; }
.mhs-hero .mhs-tagline { color: var(--mh-text-muted); margin-bottom: 2rem; }

/* Divider with label */
.mhs-divider-label {
    display: flex; align-items: center; gap: 0.75rem;
    margin: 1.5rem 0;
}
.mhs-divider-label::before,
.mhs-divider-label::after {
    content: ""; flex: 1; height: 1px; background: var(--mh-border);
}
.mhs-divider-label span { font-size: 0.75rem; color: var(--mh-text-muted); }

/* Buttons */
.mhs-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: var(--mh-radius);
    padding: 0.625rem 1.25rem;
    font-family: var(--mh-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    text-decoration: none;
    line-height: 1.2;
}
.mhs-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.mhs-btn-primary { background: var(--mh-teal); color: #fff; }
.mhs-btn-primary:hover:not(:disabled) { background: var(--mh-teal-dark); }
.mhs-btn-secondary { background: var(--mh-gold); color: var(--mh-text); }
.mhs-btn-secondary:hover:not(:disabled) { background: var(--mh-gold-dark); }
.mhs-btn-ghost { background: transparent; color: var(--mh-teal); border-color: var(--mh-border); }
.mhs-btn-ghost:hover:not(:disabled) { background: var(--mh-teal-light); }
.mhs-btn-block { width: 100%; }

/* Forms */
.mhs-field { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1rem; }
.mhs-label { font-size: 0.875rem; font-weight: 500; color: var(--mh-text); }
.mhs-input, .mhs-textarea, .mhs-select {
    width: 100%;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 0.5625rem 0.75rem;
    font-size: 0.9375rem;
    font-family: var(--mh-font-body);
    color: var(--mh-text);
    background: #fff;
}
.mhs-input:focus, .mhs-textarea:focus, .mhs-select:focus {
    outline: 2px solid var(--mh-teal);
    outline-offset: 1px;
    border-color: var(--mh-teal);
}
.mhs-textarea { min-height: 8rem; resize: vertical; }
.mhs-help { font-size: 0.75rem; color: var(--mh-text-muted); }
.mhs-error { color: var(--mh-error); font-size: 0.8125rem; }

/* Badges */
.mhs-badge {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.mhs-badge-pending   { background: oklch(94% 0.025 80);  color: oklch(45% 0.090 72); }
.mhs-badge-reviewing { background: oklch(92% 0.025 196); color: var(--mh-teal); }
.mhs-badge-accepted  { background: oklch(92% 0.040 130); color: oklch(38% 0.120 130); }
.mhs-badge-rejected  { background: oklch(94% 0.040 22);  color: oklch(42% 0.150 22); }
.mhs-badge-advance   { background: oklch(92% 0.040 130); color: oklch(38% 0.120 130); }
.mhs-badge-review    { background: oklch(94% 0.025 80);  color: oklch(45% 0.090 72); }
.mhs-badge-pass      { background: oklch(94% 0.040 22);  color: oklch(42% 0.150 22); }

/* Assessment flow */
.mhs-assessment {
    max-width: 42rem; width: 100%; position: relative; z-index: 1;
}
.mhs-progress { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.mhs-progress-track { flex: 1; height: 6px; background: var(--mh-border); border-radius: 9999px; overflow: hidden; }
.mhs-progress-fill { height: 100%; background: var(--mh-gold); transition: width 0.25s; }
.mhs-progress-count { font-size: 0.8125rem; color: var(--mh-text-muted); }

.mhs-question-text { font-family: var(--mh-font-display); color: var(--mh-teal); font-size: 1.375rem; margin-bottom: 0.5rem; }
.mhs-question-context { color: var(--mh-text-muted); font-size: 0.9375rem; font-style: italic; margin-bottom: 1.25rem; }

.mhs-option {
    display: block;
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 0.875rem 1rem;
    margin-bottom: 0.625rem;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.mhs-option:hover { border-color: var(--mh-teal); background: var(--mh-teal-light); }
.mhs-option input { margin-right: 0.625rem; }
.mhs-option.is-selected { border-color: var(--mh-teal); background: var(--mh-teal-light); }

/* Results */
.mhs-result-headline {
    font-family: var(--mh-font-display);
    font-size: 2rem;
    color: var(--mh-teal);
    margin-bottom: 0.5rem;
}
.mhs-score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; }
.mhs-score-cell { background: var(--mh-cream); border: 1px solid var(--mh-border); border-radius: var(--mh-radius); padding: 0.875rem; }
.mhs-score-cell .label { font-size: 0.75rem; color: var(--mh-text-muted); margin-bottom: 0.125rem; }
.mhs-score-cell .value { font-size: 1.5rem; font-weight: 700; color: var(--mh-teal); font-family: var(--mh-font-display); }

/* List table (public my-applications) */
.mhs-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--mh-border); border-radius: var(--mh-radius); overflow: hidden; }
.mhs-table th, .mhs-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--mh-border); font-size: 0.9375rem; }
.mhs-table th { background: var(--mh-teal-light); color: var(--mh-teal); font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; }
.mhs-table tr:last-child td { border-bottom: none; }

/* Alerts */
.mhs-alert { padding: 0.75rem 1rem; border-radius: var(--mh-radius); font-size: 0.9375rem; margin-bottom: 1rem; }
.mhs-alert-error { background: oklch(94% 0.040 22); color: oklch(42% 0.150 22); border: 1px solid oklch(85% 0.080 22); }
.mhs-alert-success { background: oklch(92% 0.040 130); color: oklch(38% 0.120 130); border: 1px solid oklch(80% 0.080 130); }
.mhs-alert-info { background: var(--mh-teal-light); color: var(--mh-teal); border: 1px solid oklch(80% 0.050 196); }

/* Logo */
.mhs-logo { height: 2.5rem; width: auto; margin: 0 auto 1rem; display: block; }

@media (min-width: 640px) {
    .mhs-screen { padding: 4rem 2rem; }
}
