:root {
    --primary: var(--pub-primary, #f6d014);
    --dark: var(--pub-dark, #151515);
    --text: #1f2937;
    --muted: #64748b;
    --line: #e5e7eb;
    --soft: #f8fafc;
}

html { scroll-behavior: smooth; }
body {
    margin: 0;
    direction: ltr;
    text-align: left;
    color: var(--text);
    background: #fff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
.en-container { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.en-top { background: var(--dark); color: #d1d5db; font-size: 13px; }
.en-top-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.en-top-list { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.en-top a { color: #fff; text-decoration: none; }
.en-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.en-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.en-brand { display: flex; align-items: center; gap: 10px; font-weight: 850; font-size: 21px; text-decoration: none; white-space: nowrap; }
.en-brand img { width: auto; height: 42px; object-fit: contain; }
.en-menu { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.en-menu a { padding: 9px 11px; text-decoration: none; border-radius: 8px; font-weight: 650; font-size: 14px; }
.en-menu a:hover, .en-menu a.active { background: var(--soft); }
.en-menu .contact { background: var(--primary); color: var(--dark); }
.en-hero {
    padding: 90px 0;
    color: #fff;
    background-image:
        linear-gradient(
            120deg,
            color-mix(in srgb, var(--dark) 78%, transparent),
            color-mix(in srgb, var(--dark) 46%, transparent)
        ),
        var(--en-hero-image);
    background-position: center;
    background-size: cover;
}
.en-hero-inner { max-width: 760px; }
.en-hero h1 { font-size: clamp(34px,6vw,62px); line-height: 1.1; margin: 0 0 18px; }
.en-hero p { font-size: 18px; color: #e5e7eb; margin: 0 0 26px; }
.en-button { display: inline-block; background: var(--primary); color: var(--dark); padding: 11px 20px; border-radius: 8px; font-weight: 750; text-decoration: none; border: 1px solid var(--primary); }
.en-button.outline { background: transparent; border-color: #cbd5e1; color: inherit; }
.en-main { min-height: 55vh; }
.en-page-head { padding: 52px 0; background: var(--dark); color: #fff; }
.en-page-head h1 { margin: 0; font-size: clamp(28px,4vw,44px); }
.en-page-head p { margin: 8px 0 0; color: #cbd5e1; }
.en-section { padding: 64px 0; }
.en-section.soft { background: var(--soft); }
.en-section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.en-section-title h2 { margin: 0; font-size: 30px; }
.en-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.en-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(15,23,42,.05); }
.en-card-image { display: block; height: 220px; background: #e5e7eb; overflow: hidden; }
.en-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.en-card:hover .en-card-image img { transform: scale(1.025); }
.en-card-body { display: flex; flex-direction: column; flex: 1; padding: 19px; }
.en-card h3 { margin: 0 0 7px; font-size: 20px; line-height: 1.35; }
.en-card h3 a { text-decoration: none; }
.en-card p { margin: 0 0 15px; color: var(--muted); }
.en-meta { color: var(--muted); font-size: 12px; margin-top: auto; }
.en-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    color: var(--dark);
    background: color-mix(in srgb, var(--primary) 22%, #fff);
    font-size: 12px;
    text-decoration: none;
}
.en-content { width: min(900px,100%); margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px,4vw,42px); }
.en-cover { width: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; margin-bottom: 28px; }
.rich-body { direction: ltr; text-align: left; }
.en-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 28px; }
.en-gallery a { display: block; height: 190px; overflow: hidden; border-radius: 10px; background: #eee; }
.en-gallery img { width: 100%; height: 100%; object-fit: cover; }
.en-children { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 28px; }
.en-child { padding: 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: #fff; }
.en-child strong { display: block; }
.en-child small { color: var(--muted); }
.en-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.en-contact-card { border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: #fff; }
.en-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.en-contact-list strong { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.en-footer { padding: 48px 0 24px; background: var(--dark); color: #cbd5e1; }
.en-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 36px; }
.en-footer h3, .en-footer h4 { color: #fff; margin-top: 0; }
.en-footer a { color: #d1d5db; text-decoration: none; }
.en-footer ul { list-style: none; padding: 0; line-height: 2.1; }
.en-copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 20px; font-size: 13px; }
.en-empty { text-align: center; border: 1px dashed #cbd5e1; padding: 45px 20px; border-radius: 14px; color: var(--muted); }

/* Classic is intentionally editorial and restrained. Bento and Liquid Glass
   replace this composition through their own small skin files. */
.public-theme-classic .en-header {
    background: rgba(255,255,255,.98);
    box-shadow: 0 1px 0 rgba(15,23,42,.08);
}

.public-theme-classic .en-hero {
    min-height: 460px;
    display: flex;
    align-items: center;
}

.public-theme-classic .en-hero h1 {
    max-width: 780px;
    font-weight: 800;
    letter-spacing: -.035em;
}

.public-theme-classic .en-card,
.public-theme-classic .en-content,
.public-theme-classic .en-contact-card {
    border-radius: 8px;
    box-shadow: 0 6px 22px rgba(15,23,42,.045);
}

.public-theme-classic .en-page-head {
    border-bottom: 4px solid var(--primary);
}

@media (max-width: 900px) {
    .en-grid, .en-children { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .en-footer-grid { grid-template-columns: 1fr 1fr; }
    .en-footer-grid > div:first-child { grid-column: 1/-1; }
}

@media (max-width: 640px) {
    .en-container { width: min(100% - 24px,1160px); }
    .en-nav { padding: 12px 0; }
    .en-menu { align-items: stretch; justify-content: flex-start; padding-top: 10px; }
    .en-grid, .en-children, .en-contact-grid, .en-footer-grid { grid-template-columns: 1fr; }
    .en-footer-grid > div:first-child { grid-column: auto; }
    .en-card-image { height: 210px; }
    .en-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .en-hero { padding: 66px 0; }
    .public-theme-classic .en-hero { min-height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
