/* ================================================================
   260807mima - "Gongju" Theme Port
   Clean blue + gray theme, modern UI, rounded corners
   Class prefix: mm-
================================================================ */

:root {
    /* New Theme Variables */
    --mm-primary: #3b82f6;
    --mm-primary-hover: #2563eb;
    --mm-bg: #f9fafb;
    --mm-bg-alt: #f3f4f6;
    
    /* Legacy Variables mapped to new theme to prevent HTML breakage */
    --mm-void: #f9fafb;
    --mm-void-l: #ffffff;
    --mm-panel: #ffffff;
    --mm-panel-l: #f3f4f6;
    --mm-panel-hi: #ffffff;
    --mm-border: #e5e7eb;
    --mm-border-l: #d1d5db;
    --mm-border-hi: #e5e7eb;
    --mm-green: #3b82f6;
    --mm-green-d: #2563eb;
    --mm-green-l: #60a5fa;
    --mm-green-dim: #eff6ff;
    --mm-text: #374151;
    --mm-text-hi: #1f2937;
    --mm-muted: #6b7280;
    --mm-muted-d: #9ca3af;
    --mm-red: #ef4444;
    --mm-amber: #3b82f6;
    --mm-cyan: #3b82f6;
    --mm-violet: #a855f7;
    --mm-pink: #f43f5e;
    --mm-lime: #eab308;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--mm-bg);
    color: var(--mm-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    font-size: 16px;
}

/* Container */
.mm-wrap {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) { .mm-wrap { max-width: 640px; } }
@media (min-width: 768px) { .mm-wrap { max-width: 768px; } }
@media (min-width: 1024px) { .mm-wrap { max-width: 1024px; } }
@media (min-width: 1280px) { .mm-wrap { max-width: 1280px; } }
@media (min-width: 1536px) { .mm-wrap { max-width: 1536px; } }

/* Header */
.mm-head {
    background: #ffffff;
    border-bottom: 1px solid var(--mm-border);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mm-bar {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mm-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.mm-logo-img {
    height: 2rem;
}

.mm-logo-txt {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mm-primary);
    letter-spacing: normal;
}

/* Language switch */
.mm-lang select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid var(--mm-border);
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: var(--mm-text-hi);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.3s;
    outline: none;
}
.mm-lang select:hover {
    border-color: var(--mm-primary);
}
.mm-lang select:focus {
    border-color: var(--mm-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
.mm-lang select option {
    background: #ffffff;
    color: var(--mm-text-hi);
}

/* Footer */
.mm-foot {
    background: #ffffff;
    border-top: 1px solid var(--mm-border);
    box-shadow: none;
    margin-top: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.mm-foot-info {
    text-align: center;
    color: var(--mm-muted);
    font-size: 0.875rem;
}
.mm-foot-info p {
    margin-bottom: 0.5rem;
}
.mm-foot-a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.mm-foot-a:hover {
    color: var(--mm-primary);
}

/* Main content */
.mm-main {
    flex-grow: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Tool list area */
.mm-list-area {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mm-cat {
    margin-bottom: 3rem;
}

.mm-cat-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    letter-spacing: normal;
}

.mm-cat-mark {
    width: 0.375rem;
    height: 1.5rem;
    background: var(--mm-text-hi);
    border-radius: 9999px;
    margin-right: 0.75rem;
    box-shadow: none;
}

.mm-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (min-width: 640px) { .mm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .mm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .mm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Tool card */
.mm-card {
    background: #ffffff;
    padding: 1.5rem;
    border: 1px solid var(--mm-border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.mm-card::before {
    display: none;
}
.mm-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    border-color: var(--mm-border);
}

.mm-card-ico {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s;
}
.mm-card-ico svg {
    width: 24px;
    height: 24px;
}

.mm-card-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.mm-card-desc {
    color: var(--mm-muted);
    font-size: 0.875rem;
    flex-grow: 1;
    line-height: 1.5;
}

/* Theme color variants */
.mm-c-cyan .mm-card-ico { background: #eff6ff; color: var(--mm-primary); }
.mm-c-cyan:hover { border-color: rgba(59, 130, 246, 0.5); }
.mm-c-cyan:hover .mm-card-ico { background: var(--mm-primary); color: #ffffff; box-shadow: none; }
.mm-c-cyan:hover .mm-card-name { color: var(--mm-primary); }

.mm-c-violet .mm-card-ico { background: #faf5ff; color: #a855f7; }
.mm-c-violet:hover { border-color: rgba(168, 85, 247, 0.5); }
.mm-c-violet:hover .mm-card-ico { background: #a855f7; color: #ffffff; box-shadow: none; }
.mm-c-violet:hover .mm-card-name { color: #a855f7; }

.mm-c-green .mm-card-ico { background: #f0fdf4; color: #22c55e; }
.mm-c-green:hover { border-color: rgba(34, 197, 94, 0.5); }
.mm-c-green:hover .mm-card-ico { background: #22c55e; color: #ffffff; box-shadow: none; }
.mm-c-green:hover .mm-card-name { color: #22c55e; }

.mm-c-amber .mm-card-ico { background: #fff7ed; color: #f97316; }
.mm-c-amber:hover { border-color: rgba(249, 115, 22, 0.5); }
.mm-c-amber:hover .mm-card-ico { background: #f97316; color: #ffffff; box-shadow: none; }
.mm-c-amber:hover .mm-card-name { color: #f97316; }

.mm-c-pink .mm-card-ico { background: #fff1f2; color: #f43f5e; }
.mm-c-pink:hover { border-color: rgba(244, 63, 94, 0.5); }
.mm-c-pink:hover .mm-card-ico { background: #f43f5e; color: #ffffff; box-shadow: none; }
.mm-c-pink:hover .mm-card-name { color: #f43f5e; }

.mm-c-lime .mm-card-ico { background: #fefce8; color: #eab308; }
.mm-c-lime:hover { border-color: rgba(234, 179, 8, 0.5); }
.mm-c-lime:hover .mm-card-ico { background: #eab308; color: #ffffff; box-shadow: none; }
.mm-c-lime:hover .mm-card-name { color: #eab308; }

/* Tool page container */
.mm-box {
    max-width: 75rem;
    margin: 0 auto 2rem auto;
    background: transparent;
    padding: 1rem;
    border: none;
    border-radius: 0;
    min-height: calc(100vh - 200px);
}
@media (max-width: 767px) { .mm-box { padding: 1rem; } }

.mm-box-head {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--mm-border);
    padding-bottom: 2rem;
}
.mm-box-head h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 0.75rem;
}
.mm-box-head p {
    color: var(--mm-muted);
    font-size: 1rem;
}

/* Grid layout */
.mm-cols2 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}
@media (min-width: 768px) {
    .mm-cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Panels */
.mm-panel-in {
    background: var(--mm-bg);
    padding: 1.5rem;
    border: 1px solid var(--mm-border);
    border-radius: 0.75rem;
}
.mm-panel-out {
    background: #ffffff;
    padding: 1.5rem;
    border: 1px solid var(--mm-border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
@media (min-width: 768px) {
    .mm-panel-in, .mm-panel-out { padding: 2rem; }
}

.mm-panel-h {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.mm-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: var(--mm-primary);
    box-shadow: none;
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.mm-dot-g { background: #22c55e; box-shadow: none; }

/* Form elements */
.mm-field {
    margin-bottom: 1.5rem;
}
.mm-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    letter-spacing: normal;
}
.mm-ipt {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #ffffff;
    color: var(--mm-text-hi);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}
.mm-ipt:focus {
    border-color: var(--mm-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
.mm-ipt::placeholder {
    color: var(--mm-muted-d);
}
textarea.mm-ipt {
    resize: vertical;
    min-height: 80px;
}
select.mm-ipt {
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 2rem;
}
select.mm-ipt option {
    background: #ffffff;
    color: var(--mm-text-hi);
}

/* Range input */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--mm-border);
    border-radius: 9999px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid var(--mm-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid var(--mm-primary);
    border-radius: 50%;
    cursor: pointer;
}

/* Checkbox */
input[type="checkbox"] {
    accent-color: var(--mm-primary);
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

/* Buttons */
.mm-btn {
    display: inline-block;
    width: 100%;
    background: var(--mm-primary);
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 1.125rem;
    font-family: inherit;
    letter-spacing: normal;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.mm-btn:hover {
    background: var(--mm-primary-hover);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.mm-btn-sm {
    width: auto;
    font-size: 0.875rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}
.mm-btn-ok {
    background: #22c55e;
    color: #ffffff;
}
.mm-btn-ok:hover {
    background: #16a34a;
}
.mm-btn-warn {
    background: #f97316;
    color: #ffffff;
}
.mm-btn-warn:hover {
    background: #ea580c;
}
.mm-btn-def {
    background: var(--mm-bg-alt);
    color: var(--mm-text-hi);
    border: none;
    box-shadow: none;
}
.mm-btn-def:hover {
    background: var(--mm-border);
    color: var(--mm-text-hi);
    box-shadow: none;
}

/* Result details */
.mm-res {
    background: var(--mm-bg);
    padding: 1.25rem;
    border: 1px solid var(--mm-border);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.mm-res-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--mm-border);
    padding-bottom: 0.75rem;
}
.mm-res-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.mm-res-name {
    font-size: 0.875rem;
    color: var(--mm-muted);
}
.mm-res-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    font-family: inherit;
}
.mm-res-unit {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--mm-muted);
}

/* Result highlight */
.mm-res-hi {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}
.mm-res-hi-l {
    font-size: 0.875rem;
    font-weight: 500;
    color: #15803d;
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: normal;
}
.mm-res-hi-v {
    font-size: 2.25rem;
    font-weight: 900;
    color: #22c55e;
    letter-spacing: -0.025em;
    font-family: inherit;
}
.mm-res-hi-d {
    font-size: 0.75rem;
    color: #22c55e;
    margin-top: 0.5rem;
}

/* ===== Info / Description Section ===== */
.mm-info {
    margin-top: 2rem;
    padding-top: 3rem;
    border-top: none;
}
.mm-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.mm-info-title::before {
    content: '';
    width: 0.375rem;
    height: 1.5rem;
    background-color: var(--mm-primary);
    border-radius: 9999px;
    margin-right: 0.75rem;
}
.mm-info-box {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    border-left: none;
}
.mm-info-intro {
    color: var(--mm-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.mm-info-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 0;
}
@media (min-width: 768px) { .mm-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mm-info-card {
    position: relative;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--mm-border);
    border-top: 1px solid var(--mm-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.mm-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--mm-primary), #60a5fa);
}
.mm-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    border-color: #93c5fd;
}
.mm-info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 1rem;
}
.mm-info-card p {
    color: var(--mm-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.mm-info-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.mm-info-card ul li {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.6;
    padding-left: 1.25rem;
    position: relative;
}
.mm-info-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #93c5fd;
}

/* FAQ section */
.mm-faq {
    padding: 3rem 0;
}
.mm-faq-kicker {
    display: none;
}
.mm-faq-h {
    display: none;
}
.mm-faq-list {
    list-style: none;
    display: grid;
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.mm-faq-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    padding: 1.75rem 2rem;
    border: 1px solid rgba(219, 230, 244, 0.8);
    border-radius: 1.25rem;
    border-left: 1px solid rgba(219, 230, 244, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}
.mm-faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--mm-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mm-faq-item:hover {
    border-color: #bfdbfe;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1);
    transform: translateY(-4px);
}
.mm-faq-item:hover::before {
    opacity: 1;
}
.mm-faq-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}
.mm-faq-item h3::before {
    content: 'Q.';
    color: var(--mm-primary);
    font-size: 1.25rem;
    margin-right: 0.5rem;
    font-weight: 900;
    flex-shrink: 0;
}
.mm-faq-item p {
    color: var(--mm-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 2rem;
}

/* Policy page */
.mm-policy {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--mm-border);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
@media (max-width: 767px) { .mm-policy { padding: 1.5rem 1rem; } }

.mm-policy-head {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--mm-border);
    padding-bottom: 1.5rem;
}
.mm-policy-head h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 0.5rem;
}
.mm-policy-date {
    color: var(--mm-muted);
    font-size: 0.875rem;
}
.mm-policy-body {
    color: var(--mm-text);
    line-height: 1.7;
    font-size: 1rem;
}
.mm-policy-sec {
    margin-bottom: 1.75rem;
}
.mm-policy-sec:last-child { margin-bottom: 0; }
.mm-policy-sec h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--mm-primary);
}
.mm-policy-sec p {
    margin-bottom: 0.75rem;
}
.mm-policy-sec ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}
.mm-policy-sec li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}
.mm-policy-sec a {
    color: var(--mm-primary);
    text-decoration: none;
}
.mm-policy-sec a:hover {
    text-decoration: underline;
}
.mm-policy-back {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--mm-border);
}

/* Contact page */
.mm-contact {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--mm-border);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
@media (max-width: 767px) { .mm-contact { padding: 1.5rem 1rem; } }

.mm-contact-head {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--mm-border);
    padding-bottom: 1.5rem;
}
.mm-contact-head h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 0.5rem;
}
.mm-contact-desc {
    color: var(--mm-muted);
    font-size: 0.875rem;
}

.mm-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 767px) { .mm-contact-grid { grid-template-columns: 1fr; } }

.mm-contact-card {
    padding: 1.5rem;
    background: var(--mm-bg);
    border: 1px solid var(--mm-border);
    border-radius: 0.75rem;
    text-align: center;
}
.mm-contact-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    border: none;
    background: #eff6ff;
    color: var(--mm-primary);
    margin-bottom: 1rem;
    box-shadow: none;
}
.mm-contact-card h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 0.5rem;
}
.mm-contact-card p {
    color: var(--mm-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.mm-contact-a {
    display: inline-block;
    color: var(--mm-primary);
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}
.mm-contact-a:hover {
    text-decoration: underline;
}
.mm-contact-icp {
    font-size: 0.875rem;
    color: var(--mm-muted);
}
.mm-contact-note {
    text-align: center;
    padding: 1.25rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}
.mm-contact-note p {
    color: #1e40af;
    font-size: 0.875rem;
    margin: 0;
}
.mm-contact-back {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--mm-border);
}

/* News list page */
.mm-news-wrap {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 768px) { .mm-news-wrap { flex-direction: row; } }
.mm-news-main { flex: 3; }
.mm-news-side { flex: 1; }

.mm-news-head {
    background: #ffffff;
    border: 1px solid var(--mm-border);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.mm-news-head h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 0.75rem;
}
.mm-news-head p {
    color: var(--mm-muted);
    font-size: 1rem;
    margin-top: 0;
}

.mm-news-box {
    background: #ffffff;
    border: 1px solid var(--mm-border);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.mm-news-list { list-style: none; }
.mm-news-item {
    border-bottom: 1px solid var(--mm-border);
    transition: background 0.3s;
    padding: 0;
}
.mm-news-item:last-child { border-bottom: none; }
.mm-news-item:hover {
    background: var(--mm-bg);
}
.mm-news-item a {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    text-decoration: none;
}
.mm-news-thumb {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}
@media (max-width: 640px) { 
    .mm-news-item a { flex-direction: column; }
    .mm-news-thumb { width: 100%; height: auto; aspect-ratio: 16/9; display: block; }
}
.mm-news-body { flex: 1; min-width: 0; }
.mm-news-body h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}
.mm-news-item:hover .mm-news-body h2 { color: var(--mm-primary); }
.mm-news-body p {
    color: var(--mm-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.mm-news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--mm-muted);
}
.mm-news-empty {
    padding: 3rem;
    text-align: center;
    color: var(--mm-muted);
}
.mm-news-page {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.mm-news-side-box {
    background: #ffffff;
    border: 1px solid var(--mm-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.mm-news-side-box h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 1rem;
    padding-left: 0;
    border-left: none;
    display: flex;
    align-items: center;
}
.mm-news-side-box h3::before {
    content: '';
    width: 0.25rem;
    height: 1rem;
    background-color: var(--mm-primary);
    border-radius: 9999px;
    margin-right: 0.5rem;
}
.mm-news-side-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.mm-news-side-box li a {
    color: var(--mm-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.mm-news-side-box li a:hover { color: var(--mm-primary); }

/* Article detail page */
.mm-article {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--mm-border);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
@media (max-width: 767px) { .mm-article { padding: 1.5rem 1rem; } }

.mm-article-head {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--mm-border);
    padding-bottom: 1.5rem;
}
.mm-article-head h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 0.5rem;
}
.mm-article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--mm-muted);
}
.mm-article-meta a {
    color: var(--mm-primary);
    text-decoration: none;
}
.mm-article-meta a:hover { text-decoration: underline; }

.mm-article-body {
    color: var(--mm-text);
    font-size: 1rem;
    line-height: 1.7;
}
.mm-article-body p { margin-bottom: 1.25rem; }
.mm-article-body img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.mm-article-body h2, .mm-article-body h3 {
    color: var(--mm-text-hi);
    margin: 1.5rem 0 1rem;
}
.mm-article-body a {
    color: var(--mm-primary);
}
.mm-article-body pre {
    background: var(--mm-bg);
    padding: 1.25rem;
    border: 1px solid var(--mm-border);
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.25rem 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
}
.mm-article-body code {
    background: var(--mm-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--mm-primary);
}

.mm-article-nav {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--mm-border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--mm-muted);
}
.mm-article-nav a {
    color: var(--mm-primary);
    text-decoration: none;
}
.mm-article-nav a:hover { text-decoration: underline; }

.mm-rel-sec {
    margin-top: 2rem;
}
.mm-rel-sec h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mm-text-hi);
    margin-bottom: 1rem;
    padding-left: 0;
    border-left: none;
    display: flex;
    align-items: center;
}
.mm-rel-sec h3::before {
    content: '';
    width: 0.375rem;
    height: 1.25rem;
    background-color: var(--mm-primary);
    border-radius: 9999px;
    margin-right: 0.75rem;
}
.mm-rel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) { .mm-rel-grid { grid-template-columns: 1fr 1fr; } }
.mm-rel-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--mm-border);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
    background: #ffffff;
    gap: 0;
}
.mm-rel-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.mm-rel-item .mm-rel-dot {
    width: 6px;
    height: 6px;
    background: var(--mm-primary);
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.mm-rel-item:hover .mm-rel-dot { background: var(--mm-primary); box-shadow: none; }
.mm-rel-item span {
    color: var(--mm-text);
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mm-rel-item:hover span { color: var(--mm-text); }

/* Utility classes */
.mm-center { text-align: center; }
.mm-mt8 { margin-top: 2rem; }
.mm-pt8 { padding-top: 2rem; }
.mm-border-t { border-top: none; }
.mm-mt4 { margin-top: 1rem; }
.mm-mb4 { margin-bottom: 1rem; }
.mm-hidden { display: none !important; }