:root {
    --ink: #121416;
    --muted: #667085;
    --line: #d7dde2;
    --paper: #f7f8f5;
    --panel: #ffffff;
    --teal: #007c78;
    --green: #1f7a4d;
    --brand-soft: #d6ebe4;
    --amber: #d28a11;
    --red: #c53b3b;
    --black: #0b0d0e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

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

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

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2vw, 24px);
    padding: 14px clamp(20px, 5vw, 72px);
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.site-header {
    position: relative;
    z-index: 10;
    border-top: 3px solid var(--teal);
    border-bottom: 1px solid var(--brand-soft);
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.1);
}

.site-footer {
    margin-top: 72px;
    padding-block: 12px;
    overflow: hidden;
    border-top: 3px solid var(--teal);
    border-bottom: 0;
    color: var(--muted);
}

.site-footer div {
    display: grid;
    gap: 3px;
}

.footer-brand-block {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 780px;
}

.footer-brand-line {
    display: flex !important;
    flex-direction: row;
    gap: 10px !important;
    align-items: center;
    color: var(--black);
    text-decoration: none;
}

.footer-logo {
    width: auto;
    max-width: 92px;
    height: 36px;
    object-fit: contain;
}

.footer-brand-text {
    display: grid;
    gap: 1px;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(0.78rem, 1.05vw, 0.95rem);
    line-height: 1.18;
}

.footer-brand-text-line {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-links {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    gap: clamp(5px, 0.6vw, 8px);
    justify-content: flex-end;
    min-width: 0;
    max-width: 58%;
    overflow: visible;
    white-space: nowrap;
}

.footer-brand-line strong {
    font-size: clamp(0.98rem, 1.25vw, 1.15rem);
    line-height: 1;
}

.brand,
.site-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand {
    text-decoration: none;
    font-weight: 800;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-title {
    color: var(--black);
    font-size: 1.22rem;
    line-height: 1;
}

.brand-tagline {
    max-width: 520px;
    color: #007c78;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
}

.brand-logo {
    width: auto;
    max-width: 168px;
    height: 64px;
    object-fit: contain;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: var(--black);
    border-radius: 8px;
}

.site-nav a,
.site-footer a,
.text-link,
.footer-legal-button {
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
}

.site-search {
    position: relative;
    width: min(360px, 42vw);
}

.language-switcher {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 4px;
    background: #f2faf7;
    border: 1px solid var(--brand-soft);
    border-radius: 999px;
}

.language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 30px;
    padding: 5px 8px;
    color: var(--teal);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a:focus,
.language-switcher a.active {
    color: #fff;
    background: var(--teal);
}

.search-field {
    position: relative;
    display: block;
}

.archive-search-box {
    position: relative;
    display: block;
}

.archive-search-suggestions {
    right: auto;
    left: 0;
}

.search-field input {
    min-height: 40px;
    padding: 8px 12px 8px 38px;
    border-color: var(--brand-soft);
    box-shadow: inset 0 2px 0 rgba(0, 124, 120, 0.08);
}

.search-field input:focus {
    border-color: var(--teal);
    outline: 2px solid rgba(0, 124, 120, 0.16);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    width: 14px;
    height: 14px;
    border: 2px solid var(--teal);
    border-radius: 999px;
    transform: translateY(-50%);
}

.search-icon::after {
    position: absolute;
    right: -6px;
    bottom: -5px;
    width: 8px;
    height: 2px;
    content: "";
    background: var(--teal);
    border-radius: 999px;
    transform: rotate(45deg);
    transform-origin: left center;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    width: min(720px, calc(100vw - 32px));
    padding: 12px;
    background: var(--panel);
    border: 1px solid var(--brand-soft);
    border-top: 4px solid var(--teal);
    border-radius: 8px;
    box-shadow: 0 20px 42px rgba(17, 24, 39, 0.18);
}

.search-suggestions-track {
    display: grid;
    grid-auto-columns: minmax(220px, 260px);
    grid-auto-flow: column;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
}

.search-slide {
    display: grid;
    overflow: hidden;
    color: var(--ink) !important;
    background: var(--panel);
    border: 2px solid var(--teal);
    border-radius: 8px;
    box-shadow: inset 0 3px 0 var(--teal), 0 8px 18px rgba(0, 124, 120, 0.08);
    scroll-snap-align: start;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.search-slide:hover,
.search-slide:focus {
    box-shadow: inset 0 3px 0 var(--teal), 0 16px 28px rgba(0, 124, 120, 0.18);
    transform: translateY(-3px);
}

.search-slide-thumb {
    display: block;
    height: 132px;
    background: #000;
}

.search-slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.search-slide-copy {
    display: grid;
    gap: 7px;
    padding: 12px;
}

.search-slide-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.search-slide-copy span {
    display: -webkit-box;
    overflow: hidden;
    color: #4c555b;
    font-size: 0.88rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.search-empty {
    min-width: 240px;
    padding: 14px;
    color: var(--muted);
    background: #edf7f3;
    border: 1px solid var(--brand-soft);
    border-radius: 8px;
    font-weight: 700;
}

.footer-legal-button {
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.footer-links a,
.footer-legal-button {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 30px;
    padding: 6px clamp(7px, 0.8vw, 10px);
    color: var(--teal);
    background: #edf7f3;
    border: 1px solid var(--brand-soft);
    border-radius: 999px;
    box-shadow: inset 0 2px 0 rgba(0, 124, 120, 0.08);
    font-size: clamp(0.72rem, 0.95vw, 0.84rem);
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus,
.footer-legal-button:hover,
.footer-legal-button:focus {
    border-color: var(--teal);
    box-shadow: 0 10px 18px rgba(0, 124, 120, 0.14);
    transform: translateY(-2px);
}

.legal-modal {
    width: min(760px, calc(100% - 32px));
    max-height: min(86vh, 820px);
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
}

.legal-modal::backdrop {
    background: rgba(11, 13, 14, 0.62);
}

.legal-modal-panel {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--brand-soft);
    border-top: 5px solid var(--teal);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
}

.legal-modal-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px clamp(18px, 4vw, 32px);
    border-bottom: 1px solid var(--brand-soft);
}

.legal-modal-header h2 {
    margin-bottom: 0;
}

.legal-modal-close {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    color: #fff;
    background: var(--teal);
    border: 1px solid var(--teal);
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.legal-modal-content {
    display: grid;
    gap: 12px;
    max-height: 64vh;
    padding: 22px clamp(18px, 4vw, 32px) 28px;
    overflow: auto;
    text-align: justify;
}

.legal-modal-content h3 {
    margin: 12px 0 0;
    color: var(--teal);
}

.legal-modal-content p {
    margin-bottom: 0;
}

.legal-frame-modal {
    width: min(940px, calc(100% - 32px));
}

.legal-frame-wrap {
    height: min(68vh, 680px);
    background: #fff;
}

.legal-frame {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 0;
}

.legal-frame-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px clamp(18px, 4vw, 32px);
    background: #edf7f3;
    border-top: 1px solid var(--brand-soft);
}

.legal-frame-link {
    color: var(--teal);
    font-weight: 800;
    text-decoration: none;
}

.legal-page-heading p {
    max-width: 720px;
    color: var(--muted);
}

.legal-page-content {
    display: grid;
    gap: 14px;
    max-width: 860px;
    margin-top: 28px;
    padding: clamp(20px, 4vw, 34px);
    color: #252b2f;
    background: var(--panel);
    border: 1px solid var(--brand-soft);
    border-left: 5px solid var(--teal);
    border-radius: 8px;
    font-size: 1.04rem;
    text-align: justify;
}

.legal-page-content h2 {
    margin: 18px 0 0;
    color: var(--teal);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.legal-page-content h2:first-child {
    margin-top: 0;
}

.legal-page-content p {
    margin: 0;
}

.legal-page-content a {
    color: var(--teal);
    font-weight: 800;
}

.editorial-contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.editorial-contact-list div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f8f5;
}

.editorial-contact-list dt {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.editorial-contact-list dd {
    margin: 4px 0 0;
    font-weight: 800;
}

@media (max-width: 620px) {
    .editorial-contact-list {
        grid-template-columns: 1fr;
    }
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
    padding: clamp(40px, 7vw, 90px) clamp(20px, 5vw, 72px) clamp(32px, 5vw, 64px);
    background: #eef3ed;
    border-bottom: 1px solid var(--line);
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    max-width: 780px;
    font-size: clamp(2.45rem, 5vw, 4.8rem);
    line-height: 0.98;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.08;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.12rem;
    line-height: 1.2;
}

.lead {
    max-width: 640px;
    color: #3c454b;
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--black);
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    color: #fff;
    background: var(--black);
}

.button.ghost {
    background: transparent;
}

.home-stream,
.feed-section {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.home-stream {
    padding-top: clamp(24px, 4vw, 52px);
}

.home-top {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 68px);
    align-items: center;
    padding: clamp(18px, 4vw, 42px);
    background: var(--panel);
    border: 1px solid var(--brand-soft);
    border-left: 5px solid var(--teal);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0, 124, 120, 0.08);
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.home-top:hover,
.home-top:focus-within {
    border-color: var(--teal);
    box-shadow: 0 18px 34px rgba(0, 124, 120, 0.18);
    transform: translateY(-4px);
}

.home-top:active {
    box-shadow: 0 8px 16px rgba(0, 124, 120, 0.12);
    transform: translateY(-1px);
}

.featured-post-media {
    display: block;
    justify-self: center;
    width: min(100%, 350px);
    color: inherit;
    text-decoration: none;
}

.phone-frame {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    padding: 20px 12px 14px;
    background: #101416;
    border: 1px solid #252d31;
    border-radius: 36px;
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.22), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.phone-frame::after {
    position: absolute;
    top: 92px;
    right: -4px;
    width: 3px;
    height: 62px;
    content: "";
    background: #2d363b;
    border-radius: 0 4px 4px 0;
}

.phone-notch {
    position: absolute;
    top: 9px;
    left: 50%;
    z-index: 3;
    width: 86px;
    height: 20px;
    background: #070909;
    border-radius: 0 0 14px 14px;
    transform: translateX(-50%);
}

.phone-screen {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 24px;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: var(--hero-backdrop, #000);
}

.phone-alert-badge {
    position: absolute;
    top: 36px;
    right: -10px;
    z-index: 4;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    color: #fff;
    background: var(--red);
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(197, 59, 59, 0.28);
}

.bell-icon {
    position: relative;
    display: inline-block;
    width: 13px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    border-bottom: 0;
}

.bell-icon::before {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 5px;
    height: 5px;
    content: "";
    border-top: 2px solid currentColor;
    border-radius: 50%;
    transform: translateX(-50%);
}

.bell-icon::after {
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 17px;
    height: 6px;
    content: "";
    border-bottom: 2px solid currentColor;
    border-radius: 999px;
    transform: translateX(-50%);
}

.featured-post-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 4.15rem);
    line-height: 1.02;
}

.featured-post-copy p {
    max-width: 680px;
    color: #3c454b;
    font-size: 1.16rem;
}

.featured-post-copy .button {
    margin-top: 10px;
}

.post-card {
    display: flex;
    overflow: hidden;
    color: var(--ink);
    background: var(--panel);
    border: 2px solid var(--teal);
    box-shadow: inset 0 3px 0 var(--teal), 0 8px 18px rgba(0, 124, 120, 0.08);
    border-radius: 8px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.post-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.post-card:hover,
.post-card:focus-within {
    box-shadow: inset 0 3px 0 var(--teal), 0 16px 28px rgba(0, 124, 120, 0.18);
    transform: translateY(-4px);
}

.post-card:active {
    box-shadow: inset 0 2px 0 var(--teal), 0 6px 12px rgba(0, 124, 120, 0.12);
    transform: translateY(-1px);
}

.post-card-link::after {
    content: none;
}

.post-thumb {
    display: block;
    height: 190px;
    padding: 0;
    background: #000;
    border-bottom: 1px solid var(--brand-soft);
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    background: #000;
    border-radius: 0;
}

.post-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.post-card h2,
.post-card p {
    max-width: none;
}

.post-card h2 {
    display: -webkit-box;
    min-height: 4.55em;
    overflow: hidden;
    margin-bottom: 10px;
    font-size: 1.28rem;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.post-card p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0;
    color: #4c555b;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.post-meta span {
    padding: 4px 8px;
    color: var(--teal);
    background: #edf7f3;
    border: 1px solid var(--brand-soft);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.feed-section {
    padding-top: clamp(40px, 6vw, 72px);
}

.feed-section .section-heading {
    display: flex;
    gap: 20px;
    align-items: end;
    justify-content: space-between;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.post-grid .empty-state {
    grid-column: 1 / -1;
}

.home-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.home-pagination a,
.home-pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 8px 11px;
    color: var(--teal);
    background: #edf7f3;
    border: 1px solid var(--brand-soft);
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.home-pagination span {
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
}

.home-pagination .pagination-ellipsis {
    color: var(--muted);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.home-pagination a:hover,
.home-pagination a:focus {
    border-color: var(--teal);
    box-shadow: 0 10px 18px rgba(0, 124, 120, 0.14);
    transform: translateY(-2px);
}

.hero-visual img,
.featured-article img,
.article-card img,
.list-item img,
.article-hero-image {
    width: 100%;
    object-fit: cover;
    background: #dce5df;
}

.hero-visual img {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.featured-section,
.latest-section,
.page-heading,
.filters,
.article-list,
.article-page {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.featured-section,
.latest-section,
.page-heading {
    padding-top: 56px;
}

.section-heading {
    margin-bottom: 18px;
}

.featured-article {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--brand-soft);
    border-left: 5px solid var(--teal);
    border-radius: 8px;
}

.featured-article img {
    aspect-ratio: 16 / 10;
    border-radius: 6px;
}

.meta-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.meta-row span,
.tag-row span {
    padding: 4px 8px;
    color: var(--teal);
    background: #edf7f3;
    border: 1px solid var(--brand-soft);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.share-links > span:not(.share-feedback) {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.share-feedback {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    color: #fff;
    background: var(--teal);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.share-feedback[hidden] {
    display: none;
}

.share-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--brand-soft);
    border-radius: 999px;
    box-shadow: inset 0 2px 0 rgba(0, 124, 120, 0.08);
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.share-link:hover,
.share-link:focus {
    border-color: var(--teal);
    box-shadow: 0 10px 18px rgba(0, 124, 120, 0.14);
    transform: translateY(-2px);
}

.article-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 0;
}

.article-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    color: #fff;
    background: var(--black);
    border: 1px solid var(--black);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(11, 13, 14, 0.14);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.article-edit-link:hover,
.article-edit-link:focus {
    background: var(--teal);
    border-color: var(--teal);
    box-shadow: 0 12px 22px rgba(0, 124, 120, 0.18);
    transform: translateY(-2px);
}

.share-brand-icon {
    display: block;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
}

.share-brand-icon-linkedin {
    color: #0a66c2;
}

.share-brand-icon-facebook {
    color: #1877f2;
}

.share-brand-icon-instagram {
    border-radius: 7px;
}

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

.article-card,
.list-item {
    background: var(--panel);
    border: 1px solid var(--brand-soft);
    box-shadow: inset 0 3px 0 var(--teal);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.article-card:hover,
.article-card:focus-within,
.list-item:hover,
.list-item:focus-within {
    border-color: var(--teal);
    box-shadow: inset 0 3px 0 var(--teal), 0 16px 28px rgba(0, 124, 120, 0.18);
    transform: translateY(-4px);
}

.article-card:active,
.list-item:active {
    box-shadow: inset 0 2px 0 var(--teal), 0 6px 12px rgba(0, 124, 120, 0.12);
    transform: translateY(-1px);
}

.article-card img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    padding: 8px;
    background: #eef3ed;
}

.card-body {
    padding: 16px;
}

.article-card a,
.list-item a {
    text-decoration: none;
}

.article-card p,
.list-item p,
.featured-article p {
    color: #4c555b;
}

.filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 280px) auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    margin-top: 20px;
    background: var(--panel);
    border: 1px solid var(--brand-soft);
    border-left: 5px solid var(--teal);
    border-radius: 8px;
}

.filters label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.article-list .empty-state {
    grid-column: 1 / -1;
}

.list-item {
    display: block;
}

.list-item-link {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    height: 100%;
    padding: 14px;
    color: inherit;
    text-decoration: none;
}

.list-item-link:focus-visible {
    outline: 3px solid rgba(0, 124, 120, 0.35);
    outline-offset: -3px;
}

.list-item img {
    height: 100%;
    min-height: 150px;
    border-radius: 6px;
}

.list-item h2 {
    display: -webkit-box;
    min-height: 4.1em;
    overflow: hidden;
    margin-bottom: 10px;
    font-size: 1.16rem;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.list-item p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.article-page {
    padding-top: 52px;
}

.article-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    margin-bottom: 34px;
    padding: clamp(18px, 4vw, 42px);
    background: var(--panel);
    border: 1px solid var(--brand-soft);
    border-left: 5px solid var(--teal);
    border-radius: 8px;
}

.article-header {
    max-width: 860px;
}

.article-header p {
    color: #3c454b;
    font-size: 1.15rem;
}

.article-phone-media {
    justify-self: center;
    width: min(100%, 320px);
}

.phone-frame-article {
    width: 100%;
}

.article-hero-image {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: center center;
    background: var(--hero-backdrop, #000);
    border: 0;
    border-radius: 0;
}

.hero-image-stack {
    --hero-logo-inset: 7%;
    --hero-logo-width: 22%;
    --hero-logo-x: 0px;
    --hero-logo-y: 0px;
    --hero-logo-custom-width: min(var(--hero-logo-width), 180px);
    --hero-logo-rendered-width: min(var(--hero-logo-width), 180px);
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--hero-backdrop, #000);
}

.hero-image-stack--tone-light {
    --hero-backdrop: #fff;
}

.hero-image-stack--tone-dark {
    --hero-backdrop: #000;
}

.hero-image-base {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    background: var(--hero-backdrop, #000);
}

.phone-screen .hero-image-base,
.article-hero-image.hero-image-base {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    background: var(--hero-backdrop, #000);
}

.list-item-media {
    min-height: 150px;
    border-radius: 6px;
    background: #000;
}

.list-item-media .hero-image-base {
    border-radius: 6px;
}

.hero-image-stack--small {
    --hero-logo-width: 16%;
}

.hero-image-stack--medium {
    --hero-logo-width: 22%;
}

.hero-image-stack--large {
    --hero-logo-width: 30%;
}

.hero-image-stack--custom_width {
    --hero-logo-rendered-width: var(--hero-logo-custom-width);
}

.hero-image-stack--custom_width .hero-image-logo {
    max-width: none;
    max-height: none;
}

.hero-image-logo {
    position: absolute;
    z-index: 2;
    width: var(--hero-logo-rendered-width) !important;
    max-width: 45%;
    max-height: 18%;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
    filter: drop-shadow(0 5px 10px rgba(17, 24, 39, 0.22));
}

.hero-image-stack--top_left .hero-image-logo {
    top: var(--hero-logo-inset);
    left: var(--hero-logo-inset);
}

.hero-image-stack--top_center .hero-image-logo {
    top: var(--hero-logo-inset);
    left: 50%;
    transform: translateX(-50%);
}

.hero-image-stack--top_right .hero-image-logo {
    top: var(--hero-logo-inset);
    right: var(--hero-logo-inset);
}

.hero-image-stack--center .hero-image-logo {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-image-stack--bottom_left .hero-image-logo {
    bottom: var(--hero-logo-inset);
    left: var(--hero-logo-inset);
}

.hero-image-stack--bottom_center .hero-image-logo {
    bottom: var(--hero-logo-inset);
    left: 50%;
    transform: translateX(-50%);
}

.hero-image-stack--bottom_right .hero-image-logo {
    right: var(--hero-logo-inset);
    bottom: var(--hero-logo-inset);
}

.hero-image-stack--custom .hero-image-logo {
    top: var(--hero-logo-y);
    right: auto;
    bottom: auto;
    left: var(--hero-logo-x);
    transform: none;
}

.search-slide-thumb .hero-image-logo {
    max-height: 24%;
}

.article-body {
    position: relative;
    max-width: none;
    margin-top: 34px;
    padding: 44px clamp(18px, 4vw, 34px) clamp(20px, 4vw, 34px);
    color: #252b2f;
    background: var(--panel);
    border: 1px solid var(--brand-soft);
    border-left: 5px solid var(--teal);
    border-radius: 8px;
    font-size: 1.06rem;
    text-align: justify;
}

.article-body::before {
    position: absolute;
    top: 14px;
    left: clamp(18px, 4vw, 34px);
    color: var(--teal);
    content: "Approfondimento";
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.article-body h2,
.article-body h3 {
    margin-top: 34px;
}

.article-body a {
    color: var(--teal);
    font-weight: 700;
}

.article-notes {
    display: grid;
    gap: 14px;
    max-width: none;
    margin-top: 34px;
    padding: 18px;
    background: #fff8e8;
    border: 1px solid var(--brand-soft);
    border-left: 5px solid var(--teal);
    border-radius: 8px;
    text-align: justify;
}

.related-section .post-card {
    border: 2px solid var(--teal);
    box-shadow: inset 0 3px 0 var(--teal), 0 10px 24px rgba(0, 124, 120, 0.08);
}

.article-notes-operational {
    background: #ecf7f4;
    border-color: var(--brand-soft);
    border-left-color: var(--teal);
}

.facts-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.facts-list div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
}

.facts-list dt {
    color: var(--muted);
    font-weight: 800;
}

.facts-list dd {
    margin: 0;
}

.mitigation-block {
    color: #25312f;
}

.empty-state {
    padding: 18px;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--brand-soft);
    border-left: 5px solid var(--teal);
    border-radius: 8px;
}

@media (max-width: 860px) {
    .hero,
    .featured-article,
    .list-item-link,
    .article-lead {
        grid-template-columns: 1fr;
    }

    .home-top {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .featured-post-media {
        width: min(100%, 320px);
    }

    .article-phone-media {
        width: min(100%, 310px);
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

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

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

    .filters {
        grid-template-columns: 1fr;
    }

    .facts-list div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        flex-wrap: wrap;
    }

    .site-search {
        width: min(100%, 420px);
    }

    .search-suggestions {
        right: auto;
        left: 0;
    }

    .footer-links {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-start;
        max-width: 100%;
    }

    .footer-brand-text-line {
        white-space: normal;
    }

    .brand-logo {
        max-width: 132px;
        height: 50px;
    }

    .brand {
        align-items: center;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-tagline {
        max-width: 260px;
        font-size: 0.78rem;
    }
}

@media (max-width: 560px) {
    .home-stream,
    .feed-section {
        width: min(100% - 28px, 1180px);
    }

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

    .article-list {
        grid-template-columns: 1fr;
    }

    .post-thumb {
        height: 180px;
    }

    .feed-section .section-heading {
        display: block;
    }
}
