/* Shared page layout (responsive shell): the same rules as the <style> block in index.html.
   Used by the PHP pages (php/); HTML pages can link this instead of repeating the block. */
/* ── Responsive overrides ────────────────────────────────────── */

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

.mdl-layout__content { overflow-x: hidden; }

/* Page shell */
.Sheet {
    width: 100%;
    max-width: 960px;
    min-width: 0;
}

/* Header banner */
div.Header {
    width: 100%;
    height: 120px;
}
div.Header-jpeg {
    width: 100%;
    height: 120px;
    background-size: cover;
}
.logo {
    width: calc(100% - 20px);
}
h1.logo-name { font-size: clamp(20px, 5vw, 34px); }
.logo-text    { font-size: clamp(16px, 4vw, 28px); }

/* Secondary nav bar */
.nav {
    width: 100%;
    height: auto;
    min-height: 28px;
}
.nav .l { right: 0; }
.nav .r div { width: 100%; }
#sses1 ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 4px 0;
}
#sses1 ul li { float: none; }
#sses1 ul li a {
    display: block;
    padding: 4px 10px;
    color: #ECF3F9;
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    line-height: 24px;
}
#sses1 ul li a:hover { color: #27333A; }

/* Three-column content layout → CSS Grid */
.contentLayout {
    width: 100%;
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    grid-template-areas: "sidebar1 content sidebar2";
    gap: 0;
}
.contentLayout .sidebar1 {
    grid-area: sidebar1;
    float: none;
    width: 100%;
}
.contentLayout .content {
    grid-area: content;
    float: none;
    width: 100%;
}
.contentLayout .sidebar2 {
    grid-area: sidebar2;
    float: none;
    width: 100%;
}

/* IMPROVE cards row → Flexbox */
.cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cards-row .Block {
    flex: 1 1 160px;
    min-width: 140px;
    margin: 0;
}

/* DNA acronym section */
.dna-section {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}
.dna-image { flex: 0 0 auto; }
.dna-image img { max-width: 120px; height: auto; }
.dna-acronym {
    flex: 0 0 auto;
    border-collapse: collapse;
}
.dna-acronym td { padding: 2px 6px; }
.dna-description {
    flex: 1 1 200px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
}

/* Companies image */
img#imgLogo.article {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Subscribe input */
.mdl-textfield__input.FieldInput {
    width: 100%;
    border-style: solid;
}

/* Footer */
.Footer {
    width: 100%;
}
.Footer-background {
    width: 100%;
}

/* ── Tablet: collapse right sidebar ──────────────────────────── */
@media (max-width: 780px) {
    .contentLayout {
        grid-template-columns: 180px 1fr;
        grid-template-areas:
            "sidebar1 content"
            "sidebar2 sidebar2";
    }
    .contentLayout .sidebar2 { grid-column: 1 / -1; }
}

/* ── Mobile: single column ───────────────────────────────────── */
@media (max-width: 540px) {
    .contentLayout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "sidebar1"
            "sidebar2";
    }
    div.Header { height: 80px; }
    div.Header-jpeg { height: 80px; }
    .logo { top: 18px; }
    .dna-section { flex-direction: column; }
}
