:root {
    --bg: #f4efe6;
    --bg-strong: #efe1cb;
    --panel: rgba(255, 252, 246, 0.82);
    --panel-strong: #fffaf2;
    --text: #181511;
    --muted: #6f6558;
    --line: rgba(24, 21, 17, 0.12);
    --brand: #d86f30;
    --brand-dark: #7f3414;
    --accent: #146c63;
    --shadow: 0 28px 80px rgba(74, 46, 23, 0.14);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shell: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 15px;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(216, 111, 48, 0.17), transparent 26%),
        radial-gradient(circle at 85% 15%, rgba(20, 108, 99, 0.16), transparent 28%),
        linear-gradient(180deg, #fbf7f1 0%, var(--bg) 48%, #f3ece0 100%);
    min-height: 100vh;
}

body.admin-page {
    background: linear-gradient(180deg, #f7f0e2 0%, #ece0cb 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

.shell {
    width: var(--shell);
    margin: 0 auto;
}

.ambient {
    position: fixed;
    inset: auto;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.45;
    z-index: -1;
}

.ambient-a {
    top: -110px;
    left: -80px;
    background: rgba(216, 111, 48, 0.25);
}

.ambient-b {
    right: -80px;
    top: 220px;
    background: rgba(20, 108, 99, 0.18);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0 12px;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.brand small {
    color: var(--muted);
    font-size: 0.8rem;
}

.brand-mark {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(140deg, var(--brand-dark), var(--brand));
    box-shadow: 0 16px 34px rgba(216, 111, 48, 0.26);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(255, 249, 240, 0.72);
    box-shadow: var(--shadow);
}

.site-nav a {
    padding: 10px 16px;
    color: var(--muted);
    border-radius: 999px;
    font-size: 0.95rem;
    transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: rgba(24, 21, 17, 0.06);
}

.nav-cta {
    background: var(--text);
    color: #fff !important;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 250, 242, 0.86);
    box-shadow: var(--shadow);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
}

.hero {
    padding: 42px 0 22px;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 26px;
    align-items: stretch;
}

.hero-copy,
.hero-showcase,
.content-card,
.catalog-card,
.detail-sidebar,
.detail-main,
.login-card,
.admin-card,
.table-card,
.form-card {
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: var(--panel);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 40px;
    border-radius: var(--radius-xl);
}

.eyebrow,
.hero-copy .eyebrow {
    margin: 0 0 12px;
    color: var(--brand-dark);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
}

.hero-copy h2,
.section-heading h2,
.detail-head h1,
.admin-topbar h1,
.login-card h1 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    font-size: clamp(1.26rem, 1.7vw, 1.72rem);
    max-width: none;
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hero-copy .hero-subtitle {
    margin: 20px 0 0;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    color: var(--muted);
    max-width: 22ch;
    white-space: nowrap;
}

.hero-copy .hero-description {
    margin: 24px 0 0;
    color: var(--muted);
    line-height: 1.8;
    max-width: 62ch;
}

.hero-actions,
.detail-actions,
.admin-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button,
.button-link,
.hero-stat,
.pill {
    border-radius: 999px;
}

.button,
.button-link,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    background: var(--text);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 180ms ease;
}

.button:hover,
.button-link:hover,
button.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(24, 21, 17, 0.18);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.64);
    color: var(--text);
    border-color: var(--line);
}

.button-danger {
    background: #8d2f23;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-stat {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
}

.hero-stat strong,
.metric strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
}

.hero-showcase {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 28px;
    background:
        linear-gradient(155deg, rgba(20, 108, 99, 0.88), rgba(9, 36, 41, 0.92)),
        var(--panel);
    color: #fefcf8;
}

.hero-showcase::after {
    content: '';
    position: absolute;
    inset: auto -60px -90px auto;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 62%);
}

.showcase-grid {
    display: grid;
    gap: 18px;
}

.showcase-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.showcase-qr {
    display: block;
    width: min(100%, 74px);
    margin-top: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    padding: 6px;
    box-shadow: 0 12px 28px rgba(8, 25, 28, 0.18);
}

.showcase-card h3,
.catalog-card h3,
.detail-main h2,
.admin-card h3,
.form-card h2,
.table-card h2 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.15rem, 1.6vw, 1.55rem);
}

.showcase-card p,
.catalog-card p,
.detail-copy,
.muted,
.admin-card p,
.table-card p,
.login-card p {
    color: rgba(255, 252, 246, 0.78);
}

.footer-contact a,
.site-footer p {
    color: var(--muted);
}

.hero-showcase .muted {
    color: rgba(244, 248, 244, 0.88);
    line-height: 1.72;
}

.section {
    padding: 42px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: clamp(1.65rem, 2.2vw, 2.45rem);
}

.catalog-grid,
.metric-grid,
.admin-grid,
.dashboard-grid {
    display: grid;
    gap: 18px;
}

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

.catalog-card {
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    overflow: hidden;
}

.card-media {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(216, 111, 48, 0.7), rgba(20, 108, 99, 0.86)),
        #c0b29b;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.card-content {
    padding: 20px 20px 22px;
}

.catalog-card .pill {
    padding: 7px 13px;
    font-size: 0.75rem;
}

.catalog-card h3 {
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
    line-height: 1.34;
}

.catalog-card p {
    font-size: 0.88rem;
    line-height: 1.58;
    color: var(--muted);
}

.catalog-card p + p {
    margin-top: 10px;
}

.content-card .detail-copy {
    color: var(--muted);
}

.catalog-card .card-link {
    font-size: 0.9rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(216, 111, 48, 0.12);
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.pill-link {
    text-decoration: none;
}

.card-link {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--brand-dark);
}

.about-grid,
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 22px;
}

.faq-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-card {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.faq-card h3 {
    margin: 0 0 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 1.04rem;
}

.faq-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.faq-cta {
    margin-top: 24px;
}

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

.content-card,
.detail-main,
.detail-sidebar,
.login-card,
.admin-card,
.table-card,
.form-card {
    padding: 28px;
    border-radius: 28px;
}

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

.metric,
.admin-card.stat-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--line);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0 40px;
    align-items: end;
}

.footer-label {
    margin: 0 0 10px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-dark);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}

.footer-contact {
    display: grid;
    gap: 10px;
    text-align: right;
}

.flash {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.flash-success {
    background: rgba(20, 108, 99, 0.11);
    color: #0d534d;
}

.flash-error {
    background: rgba(141, 47, 35, 0.1);
    color: #7c2a21;
}

.detail-page {
    padding: 24px 0 42px;
}

.detail-head {
    margin-bottom: 18px;
}

.detail-page .eyebrow {
    font-size: 0.68rem;
}

.detail-head h1 {
    font-size: clamp(1.95rem, 3vw, 3.35rem);
    line-height: 1.02;
}

.detail-page .detail-head h1 {
    font-size: clamp(1.1rem, 1.45vw, 1.55rem);
}

.detail-page .hero-subtitle {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.detail-copy {
    font-size: 0.98rem;
    line-height: 1.9;
    white-space: pre-line;
}

.detail-page .detail-copy {
    font-size: 0.9rem;
    line-height: 1.78;
    color: var(--text);
}

.detail-page .rich-text-content,
.detail-page .rich-text-content p,
.detail-page .rich-text-content li {
    color: var(--text);
}

.detail-page .detail-main h2 {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    margin-top: 26px;
}

.detail-lead {
    margin: 10px 0 16px;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.02rem, 1.35vw, 1.28rem);
    font-weight: 700;
    line-height: 1.55;
    color: var(--text);
}

.detail-page .detail-actions {
    margin-top: 20px;
}

.detail-page .button,
.detail-page .button-link,
.detail-page button.button,
.detail-page .pill {
    font-size: 0.88rem;
}

.detail-gallery-main {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(216, 111, 48, 0.5), rgba(20, 108, 99, 0.5));
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.detail-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 10px;
}

.gallery-thumb {
    border: 1px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.gallery-thumb.is-active {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(216, 111, 48, 0.12);
}

.gallery-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.feature-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid var(--line);
}

.detail-page .feature-list li {
    font-size: 0.9rem;
    line-height: 1.6;
}

.detail-page .detail-grid {
    grid-template-columns: 1fr;
}

.detail-page .detail-main {
    width: 100%;
    max-width: none;
}

.feature-list li::before {
    content: '•';
    color: var(--brand);
    font-size: 1.4rem;
    line-height: 1;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.login-card {
    width: min(520px, 100%);
}

.login-card h1 {
    font-size: clamp(1.3rem, 2.1vw, 1.95rem);
}

.login-card p,
.field small,
.form-note {
    color: var(--muted);
    line-height: 1.7;
}

.login-help {
    display: grid;
    gap: 6px;
    margin-top: -4px;
}

.text-link {
    color: var(--brand-dark);
    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}

form {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 10px;
}

.field label {
    font-weight: 700;
    font-size: 0.92rem;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    font-size: 0.95rem;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.rich-editor {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.74);
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid rgba(24, 21, 17, 0.08);
    background: rgba(255, 249, 240, 0.9);
}

.rich-editor-button,
.rich-editor-select {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
}

.rich-editor-button {
    cursor: pointer;
    font-weight: 700;
}

.rich-editor-content {
    min-height: 220px;
    padding: 16px;
    outline: none;
    line-height: 1.8;
}

.rich-editor-content p {
    margin: 0 0 12px;
}

.rich-editor-content ul,
.rich-editor-content ol,
.rich-text-content ul,
.rich-text-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.rich-text-content p {
    margin: 0 0 14px;
}

.rich-text-content {
    white-space: normal;
}

.rich-text-content li {
    margin-bottom: 6px;
}

.rich-text-content li:last-child {
    margin-bottom: 0;
}

.rich-text-content p:last-child,
.rich-text-content ul:last-child,
.rich-text-content ol:last-child {
    margin-bottom: 0;
}

.field-row,
.admin-grid,
.dashboard-grid {
    display: grid;
    gap: 18px;
}

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

.file-note {
    font-size: 0.9rem;
    color: var(--muted);
}

.seo-assist {
    display: grid;
    gap: 18px;
    margin: 10px 0 4px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 252, 246, 0.88);
}

.seo-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
}

.seo-tips,
.seo-preview {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(24, 21, 17, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.seo-tips h3,
.seo-preview strong {
    margin: 0 0 10px;
}

.seo-tips ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.seo-preview {
    display: grid;
    gap: 8px;
}

.seo-preview strong {
    color: #1a0dab;
    font-size: 1.05rem;
    line-height: 1.45;
}

.seo-preview span {
    color: #188038;
    font-size: 0.9rem;
    word-break: break-all;
}

.seo-preview p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px;
    border-right: 1px solid rgba(24, 21, 17, 0.08);
    background: rgba(255, 248, 236, 0.74);
    backdrop-filter: blur(18px);
}

.brand-admin {
    margin-bottom: 28px;
}

.admin-nav,
.admin-profile {
    display: grid;
    gap: 10px;
}

.admin-nav a {
    padding: 14px 16px;
    border-radius: 18px;
    color: var(--muted);
}

.admin-nav a:hover {
    background: rgba(24, 21, 17, 0.06);
    color: var(--text);
}

.admin-nav a.is-active {
    background: rgba(24, 21, 17, 0.08);
    color: var(--text);
}

.admin-profile {
    margin-top: 28px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--line);
}

.admin-main {
    padding: 30px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.admin-topbar h1 {
    font-size: clamp(1.7rem, 2.4vw, 2.5rem);
}

.admin-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
}

.table-card {
    overflow: hidden;
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(24, 21, 17, 0.08);
    vertical-align: top;
    text-align: left;
    font-size: 0.93rem;
}

.admin-table th {
    color: var(--muted);
    font-size: 0.88rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.status-published {
    background: rgba(20, 108, 99, 0.12);
    color: #0d534d;
}

.status-draft {
    background: rgba(141, 47, 35, 0.1);
    color: #7c2a21;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-form {
    display: inline;
}

.media-thumb,
.gallery-admin-thumb {
    width: 74px;
    height: 58px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(24, 21, 17, 0.06);
}

.media-thumb img,
.gallery-admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.gallery-admin-item {
    border-radius: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--line);
}

.gallery-admin-item .gallery-admin-thumb {
    width: 100%;
    height: 120px;
    margin-bottom: 10px;
}

.empty-state {
    padding: 34px;
    border-radius: 28px;
    text-align: center;
    background: rgba(255, 255, 255, 0.54);
    border: 1px dashed rgba(24, 21, 17, 0.16);
}

.empty-state h3 {
    margin: 0 0 10px;
    font-family: 'Manrope', sans-serif;
}

@media (max-width: 1120px) {
    .catalog-grid,
    .metric-grid,
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-panel,
    .about-grid,
    .detail-grid,
    .admin-grid,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(24, 21, 17, 0.08);
    }
}

@media (max-width: 820px) {
    .site-header {
        padding-top: 16px;
        gap: 12px;
    }

    .brand {
        min-width: 0;
        gap: 10px;
    }

    .brand strong {
        font-size: 0.94rem;
    }

    .hero {
        padding-top: 20px;
    }

    .hero-copy h1,
    .hero-copy .hero-subtitle {
        white-space: normal;
        max-width: none;
    }

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

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;
        left: 16px;
        display: none;
        border-radius: 28px;
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
    }

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

    .site-nav a {
        text-align: center;
    }

    .site-footer,
    .admin-topbar,
    .section-heading,
    .field-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .footer-contact {
        text-align: left;
    }

    .catalog-grid,
    .metric-grid,
    .dashboard-grid,
    .seo-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .hero-showcase,
    .content-card,
    .detail-main,
    .detail-sidebar,
    .login-card,
    .admin-card,
    .table-card,
    .form-card {
        padding: 22px;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(100%, calc(100vw - 20px));
    }

    .site-header {
        padding-top: 12px;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .brand strong {
        font-size: 0.9rem;
    }

    .hero-copy h2,
    .section-heading h2,
    .detail-head h1,
    .admin-topbar h1,
    .login-card h1 {
        letter-spacing: -0.03em;
    }

    .hero-copy h2 {
        font-size: clamp(1.22rem, 6vw, 1.55rem);
        line-height: 1.04;
    }

    .hero-copy .hero-subtitle {
        margin-top: 16px;
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .hero-copy .hero-description,
    .detail-copy,
    .catalog-card p,
    .content-card .detail-copy {
        font-size: 0.92rem;
        line-height: 1.72;
    }

    .card-content {
        padding: 18px 18px 20px;
    }

    .detail-page {
        padding: 16px 0 30px;
    }

    .detail-gallery-main {
        aspect-ratio: 4 / 3;
    }

    .detail-head {
        margin-bottom: 14px;
    }

    .button,
    .button-link,
    button.button {
        width: 100%;
    }

    .hero-actions,
    .detail-actions,
    .admin-actions,
    .form-actions {
        flex-direction: column;
    }
}
