/*
Theme Name: Seis Sete Norte
Theme URI: https://76n.cam/
Author: 76n.cam
Description: Tema editorial independente em português do Brasil para a 76n.cam.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: seis-sete-norte
*/

:root {
	--purple: #7a00ff;
	--purple-dark: #5600b8;
	--charcoal: #23211d;
	--charcoal-2: #34322f;
	--paper: #ffffff;
	--warm-paper: #f7f4ef;
	--orange: #ff8a18;
	--red: #c62128;
	--ink: #171717;
	--muted: #5f5f5f;
	--border: #e5e2de;
	--focus: #ffd55e;
	--green: #176a4b;
	--shell: 1040px;
	--reading: 820px;
	--radius: 14px;
	--shadow: 0 18px 45px rgba(35, 33, 29, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--purple-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}
p, ul, ol, table, figure, details { margin: 0 0 1.35em; }
h1, h2, h3 { margin: 0 0 .55em; font-weight: 850; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h1 { color: var(--charcoal); font-size: clamp(2.35rem, 6vw, 4.6rem); }
h2 { color: var(--red); font-size: clamp(1.75rem, 4vw, 2.7rem); }
h3 { color: var(--charcoal); font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
strong { font-weight: 760; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.content-shell { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; }
.narrow-shell { min-height: 55vh; padding-block: 64px 90px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 10000; top: 8px; left: 8px; width: auto; height: auto; margin: 0; clip: auto; padding: 12px 18px; background: #fff; color: #111; font-weight: 800; }

.utility-bar { min-height: 30px; background: var(--purple); color: #fff; font-size: .76rem; font-weight: 760; letter-spacing: .03em; }
.utility-inner { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.masthead { background: var(--charcoal); color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.masthead-inner { min-height: 92px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.site-logo { color: #fff; font-size: 2.25rem; font-weight: 950; line-height: 1; letter-spacing: -.08em; text-decoration: none; text-transform: lowercase; }
.site-logo span { color: var(--orange); }
.site-logo:hover { color: #fff; transform: translateY(-1px); }
.site-logo--header { width: max-content; display: inline-flex; align-items: center; }
.site-logo--header img { width: auto; height: 48px; }
.site-tagline { margin: 0; color: #d8d4cf; font-size: .94rem; text-align: right; }
.category-nav { background: var(--charcoal-2); }
.primary-menu { display: flex; justify-content: center; gap: 5px; min-height: 52px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { min-height: 52px; display: flex; align-items: center; padding: 0 22px; color: #fff; font-size: .91rem; font-weight: 820; letter-spacing: .035em; text-decoration: none; text-transform: uppercase; border-bottom: 3px solid transparent; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { background: rgba(255,255,255,.06); border-color: var(--orange); color: #fff; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; padding: 8px; border: 1px solid rgba(255,255,255,.32); border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.menu-icon { position: relative; margin-inline: auto; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }
.menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-main { min-height: 60vh; overflow: clip; }
.article-header { position: relative; padding: 68px 0 50px; border-bottom: 1px solid var(--border); }
.article-header::before { content: ""; position: absolute; left: -95px; top: 48px; width: 72px; height: 8px; background: linear-gradient(90deg, var(--purple), var(--orange)); }
.article-header .eyebrow { margin-bottom: 16px; color: var(--purple-dark); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.article-header .deck { max-width: 700px; color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.28rem); line-height: 1.55; }
.article-header .lead { max-width: 780px; margin-top: 26px; margin-bottom: 0; font-size: 1.08rem; }
.reviewed { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.reviewed::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.prose-section { padding: 46px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 20px; }
.prose-section:last-child { border-bottom: 0; }
.prose-section > *:last-child { margin-bottom: 0; }
.prose-section ul, .prose-section ol { padding-left: 1.4em; }
.prose-section li { margin-bottom: .62em; padding-left: .22em; }
.section-kicker { color: var(--purple-dark); font-size: .74rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.inline-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--purple-dark); font-weight: 850; }
.inline-link::after { content: "→"; margin-left: 8px; transition: transform .18s ease; }
.inline-link:hover::after { transform: translateX(3px); }

.editorial-figure { width: min(100%, var(--reading)); margin: 34px auto; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--warm-paper); box-shadow: var(--shadow); }
.editorial-figure img { width: 100%; aspect-ratio: auto; object-fit: cover; }
.editorial-figure figcaption { padding: 11px 16px 13px; color: var(--muted); font-size: .78rem; line-height: 1.45; }

.table-scroll { width: 100%; margin: 26px 0 30px; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(35,33,29,.05); -webkit-overflow-scrolling: touch; }
.table-scroll table { width: 100%; min-width: 680px; margin: 0; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.table-scroll th { background: var(--charcoal-2); color: #fff; text-align: left; }
.table-scroll th, .table-scroll td { padding: 15px 17px; vertical-align: top; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll th:last-child, .table-scroll td:last-child { border-right: 0; }
.table-scroll tbody tr:nth-child(even) { background: var(--warm-paper); }

.decision-list { counter-reset: decisions; margin: 28px 0; padding: 0; list-style: none; }
.decision-list li { position: relative; min-height: 58px; margin-bottom: 17px; padding: 4px 0 4px 66px; }
.decision-list li::before { counter-increment: decisions; content: counter(decisions, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 48px; height: 48px; display: grid; place-items: center; background: var(--charcoal); color: #fff; border-radius: 50%; font-size: .78rem; font-weight: 900; box-shadow: inset 0 -4px 0 var(--purple); }
.note-box { margin: 28px 0; padding: 22px 24px; border-left: 5px solid var(--orange); background: var(--warm-paper); }
.independent-note { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 10px; background: #fbfaf8; color: var(--muted); font-size: .92rem; }

.faq-list { margin-top: 28px; }
.faq-list details { overflow: hidden; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.faq-list summary { min-height: 54px; padding: 16px 52px 16px 18px; position: relative; cursor: pointer; color: var(--charcoal); font-weight: 820; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 12px; right: 17px; color: var(--purple); font-size: 1.5rem; font-weight: 500; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 17px; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border: 0; border-radius: 7px; color: #fff; font: inherit; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.button:hover { color: #fff; transform: translateY(-2px); }
.button-primary { background: var(--orange); color: var(--charcoal); }
.button-primary:hover { background: #ff9b38; color: #111; }

.contact-form { margin: 28px 0 10px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--warm-paper); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; margin-bottom: 6px; color: var(--charcoal); font-size: .88rem; font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #bcb8b2; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--purple); }
.form-consent { color: var(--muted); font-size: .82rem; }
.form-notice { margin: 24px 0; padding: 16px 18px; border-radius: 8px; font-weight: 700; }
.form-success { background: #e7f5ec; color: #0e5935; }
.form-error { background: #fff0f0; color: #8c151a; }
.honeypot { position: absolute !important; left: -9999px !important; }

.listing-page { padding-bottom: 80px; }
.post-summary { padding: 30px 0; border-bottom: 1px solid var(--border); }
.post-summary h2 { font-size: 1.7rem; }
.post-summary h2 a { color: var(--red); }

.site-footer { margin-top: 40px; padding: 58px 0 22px; background: var(--charcoal); color: #d9d5d0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px; }
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-about p { max-width: 440px; }
.footer-nav-title { margin: 0 0 .55em; color: #fff; font-size: .86rem; font-weight: 850; line-height: 1.08; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 7px; }
.site-footer a:not(.site-logo) { color: #fff; }
.footer-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .78rem; line-height: 1.55; }
.footer-note p { margin-bottom: 7px; }
.copyright { color: #aaa49d; }

body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.site-bottom-cta { position: fixed; z-index: 9990; right: 0; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); left: 0; padding-inline: 12px; pointer-events: none; }
.site-bottom-cta__inner { width: min(100%, 560px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-inline: auto; padding: 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(35,33,29,.96); box-shadow: 0 14px 38px rgba(0,0,0,.34); backdrop-filter: blur(10px); pointer-events: auto; }
.site-bottom-cta__button { min-width: 0; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border: 2px solid transparent; border-radius: 10px; font-size: .96rem; font-weight: 900; line-height: 1.15; text-align: center; text-decoration: none; white-space: nowrap; transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.site-bottom-cta__button:hover { transform: translateY(-2px); }
.site-bottom-cta__login { border-color: rgba(255,255,255,.75); background: transparent; color: #fff; }
.site-bottom-cta__login:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.site-bottom-cta__register { background: var(--orange); color: var(--charcoal); box-shadow: 0 7px 18px rgba(255,138,24,.3); }
.site-bottom-cta__register:hover { background: #ff9b38; color: #111; box-shadow: 0 9px 22px rgba(255,138,24,.4); }
.site-bottom-cta__button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (max-width: 390px) {
	body { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
	.site-bottom-cta { bottom: calc(7px + env(safe-area-inset-bottom, 0px)); padding-inline: 8px; }
	.site-bottom-cta__inner { gap: 7px; padding: 7px; border-radius: 14px; }
	.site-bottom-cta__button { min-height: 50px; padding-inline: 10px; font-size: .9rem; }
}

@media (max-width: 768px) {
	body { font-size: 16px; line-height: 1.68; }
	.shell, .content-shell { width: min(calc(100% - 36px), var(--shell)); }
	.utility-inner { justify-content: center; text-align: center; }
	.utility-date { display: none; }
	.masthead-inner { min-height: 76px; grid-template-columns: 1fr auto; gap: 16px; }
	.site-logo { font-size: 2rem; }
	.site-logo--header img { height: 42px; }
	.site-tagline { display: none; }
	.js .menu-toggle { display: inline-grid; place-items: center; }
	.category-nav { display: block; position: relative; z-index: 100; left: auto; right: auto; box-shadow: none; }
	.js .category-nav { display: none; position: absolute; left: 0; right: 0; box-shadow: 0 20px 34px rgba(0,0,0,.25); }
	.js .category-nav.is-open { display: block; }
	.primary-menu { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 12px 18px 18px; }
	.primary-menu a { min-height: 48px; justify-content: center; padding: 8px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; font-size: .84rem; }
	.article-header { padding: 45px 0 34px; }
	.article-header::before { display: none; }
	h1 { font-size: clamp(2.25rem, 11.5vw, 3.35rem); }
	h2 { font-size: clamp(1.65rem, 8vw, 2.2rem); }
	.prose-section { padding: 34px 0; }
	.editorial-figure { margin: 26px auto; border-radius: 10px; }
	.form-grid { grid-template-columns: 1fr; gap: 0; }
	.contact-form { padding: 20px; }
	.footer-grid { grid-template-columns: 1.35fr 1fr; gap: 34px 24px; }
	.footer-about { grid-column: 1 / -1; }
}

@media (max-width: 390px) {
	.shell, .content-shell { width: min(calc(100% - 28px), var(--shell)); }
	.utility-bar, .utility-inner { min-height: 28px; }
	.utility-inner { font-size: .68rem; }
	.primary-menu { grid-template-columns: 1fr 1fr; padding-inline: 14px; }
	.article-header { padding-top: 38px; }
	h1 { font-size: 2.28rem; }
	.table-scroll { margin-inline: 0; }
	.decision-list li { padding-left: 58px; }
	.decision-list li::before { width: 44px; height: 44px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
