@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&family=Source+Sans+3:wght@400;500;600;700&display=swap');

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

body {
    background: #fff;
    color: #111;
    font-family: 'Source Sans 3', sans-serif;
}

/* ── TOPBAR ── */
.topbar {
    border-bottom: 1px solid #e5e5e5;
    padding: .38rem 0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}

.tb-in {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .7rem;
    color: #888;
}

.tb-r {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.tb-btn {
    background: none;
    border: 1px solid #ddd;
    font-family: 'Source Sans 3', sans-serif;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .18rem .55rem;
    cursor: pointer;
    color: #555;
    transition: all .15s;
}

.tb-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.tb-btn.red {
    background: #CC0000;
    color: #fff;
    border-color: #CC0000;
}

.tb-btn.red:hover {
    background: #aa0000;
}

.hmbg {
    background: none;
    border: none;
    cursor: pointer;
    padding: .15rem .35rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hmbg span {
    display: block;
    width: 18px;
    height: 2px;
    background: #111;
}

/* ── MASTHEAD ── */
.mw {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.masthead {
    text-align: center;
    border-bottom: 3px solid #111;
    padding: 1rem 0 .8rem;
}

.mname {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.9rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1;
}

.mname span {
    color: #CC0000;
}

.mtag {
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #888;
    margin-top: .28rem;
}

/* ── BANNER ── */
.banner {
    background: #111;
    color: #f0f0f0;
    text-align: center;
    padding: .5rem 1rem;
    font-size: .7rem;
    letter-spacing: .04em;
}

.banner b {
    color: #CC0000;
    cursor: pointer;
    font-weight: 700;
}

.banner b:hover {
    text-decoration: underline;
}

/* ── CAT NAV ── */
.cat-nav {
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    position: sticky;
    top: 38px;
    z-index: 49;
}

.cn-in {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

.cn-in::-webkit-scrollbar {
    display: none;
}

.c-btn {
    background: none;
    border: none;
    font-family: 'Source Sans 3', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #555;
    padding: .68rem .85rem;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all .15s;
    margin-bottom: -1px;
}

.c-btn:hover {
    color: #111;
}

.c-btn.on {
    color: #CC0000;
    border-bottom-color: #CC0000;
}

/* ── ADMIN BAR ── */
.abar {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: .42rem 0;
}

.ab-in {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .7rem;
    color: #666;
    flex-wrap: wrap;
}

.ab-btn {
    background: #CC0000;
    color: #fff;
    border: none;
    padding: .3rem .75rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}

.ab-btn:hover {
    background: #aa0000;
}

.ab-btn.ol {
    background: transparent;
    border: 1px solid #bbb;
    color: #555;
}

.ab-btn.ol:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.ab-sep {
    width: 1px;
    height: 14px;
    background: #ddd;
}

/* ── FEED ── */
.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.8rem 1.25rem;
}

.hgrid {
    display: grid;
    grid-template-columns: 1fr 280px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
}

@media (max-width: 680px) {
    .hgrid {
        grid-template-columns: 1fr;
    }
}

.hmain {
    padding-right: 1.6rem;
    border-right: 1px solid #e5e5e5;
    cursor: pointer;
}

.hmain:hover .htitle {
    color: #CC0000;
}

@media (max-width: 680px) {
    .hmain {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 1.4rem;
        margin-bottom: 1.4rem;
    }
}

.hcat {
    font-size: .63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #CC0000;
    margin-bottom: .45rem;
}

.htitle {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.2;
    color: #111;
    margin-bottom: .65rem;
    transition: color .15s;
}

.hexcerpt {
    font-size: .92rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: .8rem;
}

.hmeta {
    font-size: .68rem;
    color: #999;
    display: flex;
    gap: .4rem;
    align-items: center;
}

.dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ccc;
    display: inline-block;
    flex-shrink: 0;
}

.sb {
    padding-left: 1.3rem;
}

@media (max-width: 680px) {
    .sb {
        padding-left: 0;
    }
}

.sblbl {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #888;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: .38rem;
    margin-bottom: .8rem;
}

.sc {
    display: flex;
    gap: .6rem;
    margin-bottom: .9rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.sc:last-child {
    border: none;
    margin: 0;
}

.sc:hover .stitle {
    color: #CC0000;
}

.snum {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: #e5e5e5;
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
}

.scat {
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #CC0000;
    margin-bottom: .12rem;
}

.stitle {
    font-family: 'Merriweather', serif;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.32;
    color: #111;
    transition: color .15s;
}

.smeta {
    font-size: .6rem;
    color: #bbb;
    margin-top: .18rem;
}

.shdr {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
}

.shdr-r {
    width: 26px;
    height: 3px;
    background: #CC0000;
    flex-shrink: 0;
}

.shdr-l {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #111;
    white-space: nowrap;
}

.shdr-line {
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.agrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem 1.5rem;
    margin-bottom: 2.2rem;
}

@media (max-width: 840px) {
    .agrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .agrid {
        grid-template-columns: 1fr;
    }
}

.acard {
    cursor: pointer;
}

.acard:hover .actitle {
    color: #CC0000;
}

.accat {
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #CC0000;
    margin-bottom: .32rem;
}

.actitle {
    font-family: 'Merriweather', serif;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.33;
    color: #111;
    margin-bottom: .38rem;
    transition: color .15s;
}

.acexc {
    font-size: .78rem;
    color: #555;
    line-height: 1.52;
    margin-bottom: .5rem;
}

.acmeta {
    font-size: .6rem;
    color: #bbb;
    display: flex;
    gap: .28rem;
    align-items: center;
}

.acdiv {
    height: 1px;
    background: #f0f0f0;
    margin-top: .85rem;
}

/* ── PAYWALL ── */
.pwall {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 2rem;
    text-align: center;
    margin-top: 1.4rem;
}

.pwall h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.05rem;
    margin-bottom: .45rem;
}

.pwall p {
    font-size: .8rem;
    color: #666;
    margin-bottom: .9rem;
}

/* ── ARTICLE VIEW ── */
.avw {
    max-width: 680px;
    margin: 0 auto;
}

.avcat {
    font-size: .63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #CC0000;
    margin-bottom: .5rem;
}

.avtitle {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 900;
    line-height: 1.15;
    color: #111;
    margin-bottom: .65rem;
}

.avexc {
    font-size: .97rem;
    color: #444;
    line-height: 1.6;
    font-style: italic;
    border-left: 3px solid #CC0000;
    padding-left: .9rem;
    margin-bottom: 1rem;
}

.avmeta {
    font-size: .68rem;
    color: #aaa;
    margin-bottom: 1.3rem;
    display: flex;
    gap: .4rem;
    align-items: center;
}

.avrule {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin-bottom: 1.5rem;
}

.avbody {
    font-family: 'Merriweather', serif;
    font-size: .93rem;
    line-height: 1.85;
    color: #222;
}

.avbody p {
    margin-bottom: 1.15rem;
}

.avbody h3 {
    font-size: 1.08rem;
    font-weight: 900;
    color: #111;
    margin: 1.7rem 0 .6rem;
}

/* ── MODALS ── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.52);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 800px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 2px;
    position: relative;
}

/* ── WRITE MODAL ── */
.w-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    border-bottom: 3px solid #111;
}

.w-head h3 {
    font-family: 'Merriweather', serif;
    font-size: .95rem;
    font-weight: 900;
}

.w-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #888;
}

.w-body {
    padding: 1.3rem 1.4rem;
}

.wtabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.1rem;
    border-bottom: 2px solid #e5e5e5;
}

.wtab {
    background: none;
    border: none;
    font-family: 'Source Sans 3', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .45rem .85rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
    color: #888;
}

.wtab.on {
    color: #CC0000;
    border-bottom-color: #CC0000;
}

.w-foot {
    padding: .85rem 1.4rem;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
}

.wbtn {
    border: none;
    padding: .42rem 1rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
    transition: background .15s;
}

.wbtn.pub {
    background: #CC0000;
    color: #fff;
}

.wbtn.pub:hover {
    background: #aa0000;
}

.wbtn.cancel {
    background: none;
    border: 1px solid #ddd;
    color: #555;
}

.wbtn.cancel:hover {
    background: #f5f5f5;
}

/* ── FORM ELEMENTS ── */
.f-row {
    margin-bottom: .9rem;
}

.f-lbl {
    display: block;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #555;
    margin-bottom: .3rem;
}

.f-inp {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ddd;
    padding: .45rem 0;
    font-family: 'Source Sans 3', sans-serif;
    font-size: .88rem;
    outline: none;
    background: transparent;
    transition: border-color .15s;
}

.f-inp:focus {
    border-bottom-color: #CC0000;
}

.f-sel {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ddd;
    padding: .45rem 0;
    font-family: 'Source Sans 3', sans-serif;
    font-size: .88rem;
    outline: none;
    background: transparent;
    cursor: pointer;
}

.f-ta {
    width: 100%;
    border: 1px solid #e5e5e5;
    padding: .6rem .7rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: .85rem;
    outline: none;
    resize: vertical;
    min-height: 90px;
    transition: border-color .15s;
}

.f-ta:focus {
    border-color: #CC0000;
}

.f2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
}

.bigbtn {
    width: 100%;
    background: #CC0000;
    color: #fff;
    border: none;
    padding: .72rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
    margin-top: .5rem;
}

.bigbtn:hover {
    background: #aa0000;
}

.bigbtn.dark {
    background: #111;
}

.bigbtn.dark:hover {
    background: #333;
}

.bigbtn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ── EMPTY STATE ── */
.empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: #ccc;
}

.et {
    font-family: 'Merriweather', serif;
    font-size: .95rem;
    color: #888;
    margin-bottom: .3rem;
}

.es {
    font-size: .75rem;
}

/* ── FOOTER ── */
.footer {
    border-top: 3px solid #111;
    padding: 1.6rem 1.25rem;
    text-align: center;
}

.fname {
    font-family: 'Merriweather', serif;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.fname span {
    color: #CC0000;
}

.fcopy {
    font-size: .66rem;
    color: #bbb;
    margin-top: .38rem;
}

/* ── IMAGENS ── */
.article-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.article-cover-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: .8rem;
}

.article-cover-grid {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: .5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.article-body img.align-left {
    float: left;
    margin-right: 1rem;
    max-width: 50%;
}

.article-body img.align-right {
    float: right;
    margin-left: 1rem;
    max-width: 50%;
}

.article-body img.align-center {
    display: block;
    margin: 1rem auto;
}