/* ==========================================================================
   Sage Intl. Trading SARL — public site
   Palette and typography are carried over from the original static site.
   ========================================================================== */

:root {
    --navy: #14284e;
    --ink: #0b1a36;
    --ink-2: #071226;
    --gold: #c9a24e;
    --gold-2: #e3c88a;
    --gold-3: #8a671f;
    --muted: #4d5872;
    --body: #2b3954;
    --line: #dde2ec;
    --bg: #f5f6f9;
    --white: #ffffff;
    --danger: #9d2c2c;
    --radius: 14px;
    --shadow: 0 18px 40px rgba(5, 13, 30, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Barlow', 'Segoe UI', system-ui, sans-serif;
    color: var(--navy);
    background: var(--bg);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--navy);
}

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

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.sg-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sg-wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------------------------------------- top bar */

.sg-topbar {
    background: var(--ink);
    font-size: 14px;
    color: #c3cde0;
}

.sg-topbar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 22px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.sg-langbar {
    display: inline-flex;
    border: 1px solid #4a5f88;
    border-radius: 999px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
}

.sg-langbar a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    text-decoration: none;
    background: var(--ink);
    color: var(--gold-2);
}

.sg-langbar a:hover {
    background: #16294a;
    color: #fff;
}

.sg-langbar a.is-active {
    background: var(--gold);
    color: var(--ink);
}

.sg-toplinks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.sg-toplinks a {
    color: var(--gold-2);
    text-decoration: none;
    font-weight: 600;
}

.sg-toplinks a:hover {
    color: #fff;
}

/* ----------------------------------------------------------------- header */

.sg-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.sg-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.sg-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy);
}

.sg-brand img {
    display: block;
    width: 83px;
    height: 50px;
    flex: 0 0 auto;
}

.sg-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.sg-brand-name {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.06em;
}

.sg-brand-sub {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.sg-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sg-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #c9d0de;
    color: var(--navy);
    text-decoration: none;
    background: #fff;
}

.sg-icon-btn:hover {
    border-color: var(--navy);
    color: var(--ink);
}

.sg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    border: 2px solid transparent;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sg-btn--outline {
    border-color: var(--navy);
    color: var(--navy);
    background: transparent;
}

.sg-btn--outline:hover {
    background: var(--navy);
    color: #fff;
}

.sg-btn--gold {
    background: var(--gold);
    color: var(--ink);
}

.sg-btn--gold:hover {
    background: var(--gold-2);
    color: var(--ink);
}

.sg-btn--navy {
    background: var(--navy);
    color: #fff;
}

.sg-btn--navy:hover {
    background: var(--ink);
    color: #fff;
}

.sg-btn--light {
    border-color: #7f93b8;
    color: #fff;
}

.sg-btn--sm {
    min-height: 36px;
    padding: 0 12px;
    font-size: 14px;
}

.sg-dnav {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 18px;
    font-weight: 500;
    font-size: 16px;
}

.sg-dnav a {
    position: relative;
    padding: 4px 0;
    text-decoration: none;
    color: var(--navy);
}

.sg-dnav a:hover {
    color: var(--gold-3);
}

.sg-dnav a.is-active {
    color: var(--gold-3);
    font-weight: 600;
}

.sg-dnav a.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--gold);
}

.sg-mnav {
    display: none;
    flex: 1 1 100%;
}

.sg-mnav summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    border: 2px solid var(--navy);
    font-weight: 600;
    font-size: 17px;
    color: var(--navy);
    list-style: none;
    cursor: pointer;
}

.sg-mnav summary::-webkit-details-marker {
    display: none;
}

.sg-mnav-panel {
    display: flex;
    flex-direction: column;
    padding: 8px 0 4px;
}

.sg-mnav-panel a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid #e6eaf1;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    color: var(--navy);
}

.sg-mnav-panel a.is-active {
    color: var(--gold-3);
    font-weight: 600;
}

.sg-mnav-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 12px 4px;
    border-bottom: 1px solid #e6eaf1;
    font-size: 16px;
}

.sg-mnav-langs a {
    border: 0;
    padding: 0;
    font-weight: 600;
}

/* ----------------------------------------------------------------- footer */

.sg-footer {
    background: var(--ink-2);
    color: #a7b3cb;
    font-size: 15px;
}

.sg-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.sg-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.8;
}

.sg-footer a {
    color: #c3cde0;
    text-decoration: none;
}

.sg-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.sg-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
}

.sg-footer-bottom {
    font-size: 14px;
    color: #8794ad;
}

/* ------------------------------------------------------------- whatsapp */

.sg-wa {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1f9d55;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(11, 26, 54, 0.28);
    text-decoration: none;
}

.sg-wa:hover {
    background: #178a48;
    color: #fff;
}

/* ----------------------------------------------------------- page content */

.sg-page {
    background: var(--bg);
    color: var(--navy);
    font-family: 'Barlow', 'Segoe UI', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.55;
}

.sg-page details > summary {
    list-style: none;
    cursor: pointer;
}

.sg-page details > summary::-webkit-details-marker {
    display: none;
}

/* ------------------------------------------------------------- blog cards */

.sg-blog-hero {
    background: var(--navy);
    color: #fff;
}

.sg-blog-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 64px;
    padding-bottom: 72px;
}

.sg-eyebrow {
    margin: 0;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-2);
}

.sg-blog-hero h1 {
    margin: 0;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    max-width: 24ch;
    text-wrap: balance;
}

.sg-blog-hero p {
    margin: 0;
    font-size: 19px;
    color: #d3dbea;
    max-width: 64ch;
}

.sg-blog-body {
    padding-top: 44px;
    padding-bottom: 64px;
}

.sg-blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 26px;
}

.sg-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sg-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #eef1f7;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sg-chip:hover,
.sg-chip.is-active {
    background: var(--navy);
    color: #fff;
}

.sg-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.sg-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(11, 26, 54, 0.12);
}

.sg-card-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #e8ecf3;
}

.sg-card-cover--empty {
    display: grid;
    place-items: center;
    color: var(--gold-3);
    font-family: 'Cinzel', Georgia, serif;
    font-size: 28px;
    background: linear-gradient(135deg, #eef1f7, #f7f0e0);
}

.sg-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.sg-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 13px;
    color: var(--muted);
}

.sg-card h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.sg-card h2 a {
    text-decoration: none;
    color: var(--navy);
}

.sg-card h2 a:hover {
    color: var(--gold-3);
}

.sg-card p {
    margin: 0;
    color: var(--body);
    font-size: 15.5px;
    line-height: 1.55;
}

.sg-card-link {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    color: var(--gold-3);
}

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

/* ------------------------------------------------------------- blog post */

.sg-post-head {
    background: var(--navy);
    color: #fff;
}

.sg-post-head-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 56px;
    padding-bottom: 56px;
    max-width: 860px;
}

.sg-post-head h1 {
    margin: 0;
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.15;
    text-wrap: balance;
}

.sg-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 15px;
    color: #cbd5e6;
}

.sg-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 72px;
    align-items: start;
}

.sg-post-cover {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 28px;
}

.sg-post-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.sg-aside {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sg-aside-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.sg-aside-card h2 {
    margin: 0 0 12px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sg-related {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sg-related a {
    display: block;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.35;
}

.sg-related a:hover {
    color: var(--gold-3);
}

.sg-related span {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}

/* ---------------------------------------------------------------- prose */

.sg-prose {
    font-size: 18px;
    line-height: 1.72;
    color: #243149;
}

.sg-prose > *:first-child {
    margin-top: 0;
}

.sg-prose h2,
.sg-prose h3,
.sg-prose h4 {
    color: var(--navy);
    line-height: 1.25;
    text-wrap: balance;
}

.sg-prose h2 {
    margin: 1.7em 0 0.6em;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.6rem;
}

.sg-prose h3 {
    margin: 1.5em 0 0.5em;
    font-size: 1.25rem;
}

.sg-prose p,
.sg-prose ul,
.sg-prose ol,
.sg-prose blockquote,
.sg-prose figure,
.sg-prose table {
    margin: 0 0 1.15em;
}

.sg-prose ul,
.sg-prose ol {
    padding-left: 1.4em;
}

.sg-prose li {
    margin-bottom: 0.4em;
}

.sg-prose a {
    color: var(--gold-3);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sg-prose img {
    border-radius: 10px;
    height: auto;
}

.sg-prose blockquote {
    margin-left: 0;
    padding: 4px 0 4px 20px;
    border-left: 4px solid var(--gold);
    color: var(--muted);
    font-style: italic;
}

.sg-prose figure figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
}

.sg-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.sg-prose th,
.sg-prose td {
    border: 1px solid var(--line);
    padding: 8px 10px;
    text-align: left;
}

.sg-prose hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2em 0;
}

/* --------------------------------------------------------------- search */

.sg-search-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 8px;
}

.sg-search-box input[type='search'] {
    flex: 1 1 260px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #c9d0de;
    border-radius: 8px;
    font: inherit;
    font-size: 17px;
    color: var(--navy);
    background: #fff;
}

.sg-search-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 26px;
}

.sg-result {
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.sg-result h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.sg-result h2 a {
    text-decoration: none;
    color: var(--navy);
}

.sg-result h2 a:hover {
    color: var(--gold-3);
}

.sg-result p {
    margin: 0;
    color: var(--body);
    font-size: 16px;
}

.sg-result mark {
    background: #f4ecda;
    color: inherit;
    padding: 0 1px;
}

.sg-muted {
    color: var(--muted);
}

/* ------------------------------------------------------------ pagination */

.sg-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 34px;
    padding: 0;
    list-style: none;
}

.sg-pager a,
.sg-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.sg-pager a:hover {
    border-color: var(--navy);
}

.sg-pager .is-current {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.sg-pager .is-disabled {
    color: #aab3c4;
    background: #f3f5f9;
}

.sg-empty {
    padding: 40px 24px;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
}

/* --------------------------------------------------------- form feedback */

.sg-form-feedback {
    margin: 14px 0 0;
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.sg-form-feedback.is-success {
    background: #e8f6ee;
    border: 1px solid #bfe3cd;
    color: #1c5a32;
}

.sg-form-feedback.is-error {
    background: #fbecec;
    border: 1px solid #f0caca;
    color: #8d2626;
}

/* ---------------------------------------------------------------- flash */

.sg-flash {
    max-width: 1240px;
    margin: 16px auto 0;
    padding: 12px 18px;
    border-radius: 10px;
    background: #eaf5ee;
    border: 1px solid #b9dfc7;
    color: #1c5a32;
    font-weight: 500;
}

/* -------------------------------------------------------- inline editing */

body.sg-editing .sg-editable-hover,
body.sg-editing [data-sg-key]:hover {
    outline: 2px dashed var(--gold);
    outline-offset: 4px;
    background-color: rgba(201, 162, 78, 0.07);
    cursor: text;
}

body.sg-editing [data-sg-key].is-editing {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    background-color: #fffdf5;
    cursor: text;
}

body.sg-editing [data-sg-key].is-editing a {
    pointer-events: none;
}

body.sg-editing [data-sg-img] {
    cursor: pointer;
}

body.sg-editing [data-sg-img]:hover {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}

.sg-edit-pencil {
    position: fixed;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(11, 26, 54, 0.15);
    border-radius: 8px;
    background: var(--gold);
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(5, 13, 30, 0.28);
    cursor: pointer;
}

.sg-edit-pencil:hover {
    background: var(--gold-2);
}

.sg-edit-pencil.is-visible {
    display: inline-flex;
}

.sg-img-edit {
    position: fixed;
    z-index: 10001;
    display: none;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(11, 26, 54, 0.15);
    border-radius: 8px;
    background: var(--gold);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(5, 13, 30, 0.28);
    cursor: pointer;
}

.sg-img-edit:hover {
    background: var(--gold-2);
}

.sg-img-edit.is-visible {
    display: inline-flex;
}

.sg-edit-toolbar {
    position: fixed;
    top: 14px;
    left: 50%;
    z-index: 10005;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow);
    transform: translateX(-50%);
}

.sg-edit-toolbar.is-visible {
    display: flex;
}

.sg-edit-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #33486e;
    border-radius: 7px;
    background: #16294a;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.sg-edit-toolbar button:hover {
    background: #223a63;
}

.sg-edit-toolbar .sg-save {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}

.sg-edit-toolbar .sg-save:hover {
    background: var(--gold-2);
}

.sg-edit-toolbar .sg-cancel {
    background: transparent;
}

.sg-edit-toolbar .sg-status {
    padding: 0 8px;
    font-size: 13px;
    color: #cbd5e6;
}

.sg-adminbar {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow);
    font-size: 13px;
}

.sg-adminbar a,
.sg-adminbar button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #e6ecf7;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.sg-adminbar a:hover,
.sg-adminbar button:hover {
    background: #223a63;
    color: #fff;
}

.sg-adminbar .sg-adminbar-edit {
    background: var(--gold);
    color: var(--ink);
}

.sg-adminbar .sg-adminbar-edit[aria-pressed='false'] {
    background: #33486e;
    color: #fff;
}

.sg-adminbar-label {
    padding: 0 8px;
    color: #94a4c0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.sg-editing .sg-wa {
    bottom: 78px;
}

/* ----------------------------------------------------------------- modal */

.sg-modal {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 13, 30, 0.62);
}

.sg-modal.is-open {
    display: flex;
}

.sg-modal-card {
    width: 100%;
    max-width: 540px;
    max-height: 92vh;
    overflow: auto;
    padding: 24px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.sg-modal-card h2 {
    margin: 0 0 6px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 22px;
}

.sg-modal-card p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 15px;
}

.sg-modal-preview {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    margin-bottom: 14px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f7f8fb;
}

.sg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.sg-field label {
    font-size: 14px;
    font-weight: 600;
}

.sg-field input[type='text'],
.sg-field input[type='file'],
.sg-field textarea {
    font: inherit;
    font-size: 15px;
    padding: 9px 12px;
    border: 1px solid #c9d0de;
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
}

.sg-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.sg-editor-note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

.sg-toast {
    position: fixed;
    left: 50%;
    bottom: 92px;
    z-index: 10020;
    max-width: 90vw;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sg-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.sg-toast.is-error {
    background: var(--danger);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
    .sg-post-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 32px;
    }
}

@media (max-width: 960px) {
    .sg-actions {
        display: none !important;
    }

    .sg-mnav {
        display: block;
        width: 100%;
    }

    .sg-dnav {
        display: none !important;
    }

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

    .sg-aside {
        position: static;
    }
}

@media (max-width: 640px) {
    .sg-wrap {
        padding: 0 18px;
    }

    .sg-brand-name {
        font-size: 24px;
    }

    .sg-brand img {
        width: 66px;
        height: 40px;
    }

    .sg-toplinks a:nth-child(2) {
        display: none;
    }

    .sg-blog-hero-inner,
    .sg-post-head-inner {
        padding-top: 44px;
        padding-bottom: 48px;
    }

    .sg-adminbar {
        right: 10px;
        bottom: 10px;
    }

    .sg-adminbar-label {
        display: none;
    }

    .sg-edit-toolbar {
        max-width: calc(100vw - 20px);
        overflow-x: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Solar request: appliance rows stack on phones (rule from the original page). */
@media (max-width: 700px){.sg-row{grid-template-columns: repeat(2, minmax(0, 1fr)) !important}.sg-row>*:first-child{grid-column: 1 / -1}}
