/* =========================================================
   CARGOS.COM.BR — app.css
   ========================================================= */

:root {
  --ink:        #0a0a0a;
  --ink-2:      #1a1a1a;
  --text:       #2a2a2a;
  --muted:      #6a6a6a;
  --muted-2:    #9a9a9a;
  --hairline:   #e5e5e5;
  --hairline-2: #f0f0f0;
  --bg:         #ffffff;
  --bg-soft:    #fafaf8;
  --bg-data:    #f5f5f3;
  --accent:     #c8102e;

  --t-1: #8b0a18;
  --t-2: #c8102e;
  --t-3: #c8a52e;
  --t-4: #4a8b3e;
  --t-5: #1f5a3e;

  --serif: 'Fraunces', 'Times New Roman', Georgia, serif;
  --sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11", "cv02";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--bg); }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: #00000033; transition: text-decoration-color .15s; }
a:hover { text-decoration-color: var(--ink); }

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

.wrap         { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow  { max-width: 760px;  margin: 0 auto; padding: 0 24px; }

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

/* MASTHEAD */
.masthead {
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  z-index: 200;
}
.masthead-inner { display: flex; align-items: center; gap: 24px; }
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-dot { color: var(--accent); }

.search { flex: 1; position: relative; max-width: 520px; }
.search-input-wrap { position: relative; }
.search input {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 38px 10px 38px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.search input:focus { outline: none; border-color: var(--ink); background: var(--bg); }
.search input::placeholder { color: var(--muted-2); }

.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; }
.search-shortcut { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--bg); border: 1px solid var(--hairline); padding: 2px 6px; border-radius: 3px; pointer-events: none; }
.search input:focus + .search-shortcut { display: none; }

.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bg); border: 1px solid var(--ink);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  max-height: 420px; overflow-y: auto; display: none; z-index: 300;
}
.search-results.open { display: block; }
.search-result {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--hairline-2);
  text-decoration: none; color: var(--text);
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.focused { background: var(--bg-soft); }
.search-result-title { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.search-result-title mark { background: transparent; color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--accent); }
.search-result-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.02em; white-space: nowrap; }
.search-result-empty { padding: 16px; color: var(--muted); font-size: 14px; text-align: center; }
.search-result-footer { padding: 8px 14px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; border-top: 1px solid var(--hairline); background: var(--bg-soft); display: flex; justify-content: space-between; align-items: center; }
.search-result-footer kbd { font-family: var(--mono); font-size: 10px; background: var(--bg); border: 1px solid var(--hairline); border-radius: 2px; padding: 1px 4px; margin: 0 1px; }

.masthead-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
.masthead-nav a { text-decoration: none; color: var(--text); }
.masthead-nav a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .masthead-nav { display: none; }
  .search-shortcut { display: none; }
}

/* BUSCA GRANDE — homepage e 404 */
.search-big {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}
.search-big-input-wrap { position: relative; }
.search-big-input-wrap svg {
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%); width: 20px; height: 20px;
}
.search-big input {
  width: 100%;
  font-family: var(--sans);
  font-size: 17px;
  padding: 16px 18px 16px 50px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
.search-big input:focus { outline: none; box-shadow: 0 0 0 3px rgba(200,16,46,0.15); }

/* BREADCRUMB */
.crumb { padding: 16px 0 4px; font-size: 13px; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb-sep { padding: 0 8px; opacity: .5; }

/* HERO */
.hero {
  padding: 22px 0 28px;
  border-bottom: 1px solid var(--hairline);
}
.hero-row-1 {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
}
.hero-icon {
  width: 150px; height: 150px;
  background: var(--bg-data);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; overflow: hidden;
}
.hero-icon img, .hero-icon svg { width: 100%; height: 100%; display: block; }
.hero-icon-img { object-fit: cover; }

.hero-h1-wrap { min-width: 0; }

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.kicker-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.kicker a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s, color .15s; }
.kicker a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 10px;
}
.hero h1 .sep { color: var(--accent); font-weight: 400; margin: 0 4px; }
.hero-cbo-line {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.hero-cbo-line strong {
  color: var(--ink);
  font-weight: 700;
  background: var(--bg-data);
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 8px;
}

.hero-row-2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 44px;
  align-items: start;
}
.hero-lead {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}
.hero-lead::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 56px;
  float: left;
  line-height: 0.85;
  padding: 4px 9px 0 0;
  color: var(--ink);
}
.hero-side { border-left: 1px solid var(--hairline); padding-left: 28px; }
.hero-side-title {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 14px;
}
.hero-bars .row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 5px; font-size: 12.5px; }
.hero-bars .row .lbl { font-weight: 500; color: var(--ink); }
.hero-bars .row .num { font-family: var(--mono); font-weight: 700; font-size: 11.5px; color: var(--muted); }
.hero-bars .bar-track { height: 3px; background: var(--hairline); margin-bottom: 14px; overflow: hidden; }
.hero-bars .bar-fill { height: 100%; background: var(--ink); }

@media (max-width: 860px) {
  .hero-row-1 { grid-template-columns: 90px 1fr; gap: 18px; }
  .hero-icon { width: 90px; height: 90px; }
  .hero h1 { font-size: 26px; }
  .hero-row-2 { grid-template-columns: 1fr; gap: 24px; }
  .hero-side { border-left: none; border-top: 1px solid var(--hairline); padding-left: 0; padding-top: 20px; }
  .hero-lead { font-size: 17px; }
  .hero-lead::first-letter { font-size: 48px; }
}

/* Hero archive (sem ícone, sem barras) */
.hero-archive { padding: 30px 0 36px; }
.hero-archive h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 16px;
}
.hero-lead-archive {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  max-width: 720px;
}

/* ADSENSE */
.ad-wrap { display: flex; justify-content: center; margin: 28px 0; min-height: 90px; }
.ad-wrap ins.adsbygoogle { max-width: 970px; }

/* SECTION */
.section { padding: 48px 0 8px; }
.section-head {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(23px, 2.8vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.section-head h2 .h2-cbo {
  font-family: var(--mono);
  font-size: 0.55em;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: inline-block;
  margin-left: 6px;
  vertical-align: 5px;
}
.section-head .sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  padding-bottom: 4px;
}

.section p { font-size: 17px; line-height: 1.65; margin-bottom: 16px; color: var(--text); }
.section p strong { color: var(--ink); font-weight: 600; }
.section h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

/* TERMÔMETRO */
.thermometer {
  margin: 24px 0 32px;
  padding: 28px 0 24px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.thermometer-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; gap: 16px; }
.thermometer-title { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); }
.thermometer-zone-label { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink); }
.thermometer-zone-label .zone-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }

.thermometer-track {
  position: relative;
  height: 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-bottom: 26px;
}
.thermometer-segment { position: relative; opacity: 0.22; transition: opacity .3s; }
.thermometer-segment.zone-1 { background: var(--t-1); }
.thermometer-segment.zone-2 { background: var(--t-2); }
.thermometer-segment.zone-3 { background: var(--t-3); }
.thermometer-segment.zone-4 { background: var(--t-4); }
.thermometer-segment.zone-5 { background: var(--t-5); }
.thermometer-segment.active { opacity: 1; }

.thermometer-marker {
  position: absolute;
  top: -8px;
  width: 2px;
  height: 32px;
  background: var(--ink);
  transform: translateX(-1px);
  z-index: 2;
}
.thermometer-marker::before {
  content: ""; position: absolute; top: -6px; left: -5px;
  width: 12px; height: 12px;
  background: var(--ink);
  border-radius: 50%;
}

.thermometer-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-bottom: 20px; }
.thermometer-scale-item {
  text-align: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 4px;
}
.thermometer-scale-item.active { color: var(--ink); font-weight: 700; }

.thermometer-readings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.thermometer-reading { padding: 0 18px; border-right: 1px solid var(--hairline); }
.thermometer-reading:last-child { border-right: none; }
.thermometer-reading:first-child { padding-left: 0; }
.thermometer-reading-lbl {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 6px;
}
.thermometer-reading-val { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.25; color: var(--ink); }

@media (max-width: 700px) {
  .thermometer-readings { grid-template-columns: 1fr; gap: 14px; }
  .thermometer-reading { padding: 0; border-right: none; border-bottom: 1px solid var(--hairline); padding-bottom: 14px; }
  .thermometer-reading:last-child { border-bottom: none; padding-bottom: 0; }
  .thermometer-scale-item { font-size: 9px; }
}

/* QUALIFIERS */
.qualifiers { margin: 22px 0 28px; padding: 24px 28px; background: var(--bg-data); border-left: 3px solid var(--ink); }
.qualifiers-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; list-style: none; }
.qualifiers-list li { font-family: var(--sans); font-size: 15px; line-height: 1.45; color: var(--text); position: relative; padding-left: 18px; }
.qualifiers-list li::before { content: "›"; position: absolute; left: 0; top: 0; font-family: var(--serif); font-weight: 700; color: var(--ink); }
.qualifiers-list li strong {
  color: var(--ink); font-weight: 600;
  display: block; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 2px; font-family: var(--sans);
}
@media (max-width: 700px) {
  .qualifiers { padding: 20px 18px; }
  .qualifiers-list { grid-template-columns: 1fr; gap: 14px; }
}

/* PULL QUOTE */
.pull-quote {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 500;
  font-style: italic;
  border-left: 3px solid var(--ink);
  padding: 4px 0 4px 22px;
  margin: 26px 0;
  letter-spacing: -0.005em;
}

/* TABELA */
.table-wrap { overflow-x: auto; margin: 12px 0 24px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl thead th {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10.5px;
  color: var(--muted);
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--ink);
  background: var(--bg);
}
.tbl tbody td { padding: 12px 14px; border-bottom: 1px solid var(--hairline-2); vertical-align: top; color: var(--text); }
.tbl tbody tr:hover td { background: var(--bg-soft); }
.tbl .num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; font-size: 12.5px; color: var(--ink); }

/* COLLAPSE */
.collapse { border-top: 1px solid var(--hairline); }
.collapse:last-of-type { border-bottom: 1px solid var(--hairline); }
.collapse > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.collapse > summary::-webkit-details-marker { display: none; }
.collapse > summary::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 22px; color: var(--muted); }
.collapse[open] > summary::after { content: "−"; }
.collapse > summary .count { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 400; margin-left: auto; margin-right: 14px; }
.collapse-body { padding: 0 0 20px; }

/* HIERARQUIA */
.hierarchy { border-left: 2px solid var(--ink); margin: 22px 0; }
.hierarchy-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0 13px 20px;
  border-bottom: 1px solid var(--hairline-2);
  margin-left: -2px;
  border-left: 2px solid transparent;
  text-decoration: none !important;
  transition: border-left-color .15s, background .15s;
}
.hierarchy-item:hover { background: var(--bg-soft); border-left-color: var(--muted); }
.hierarchy-item:last-child { border-bottom: none; }
.hierarchy-item.active { border-left-color: var(--accent); background: var(--bg-soft); }
.hierarchy-code { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink); min-width: 70px; letter-spacing: 0.02em; }
.hierarchy-text { font-family: var(--sans); font-size: 15px; color: var(--text); }
.hierarchy-item.active .hierarchy-text { color: var(--ink); font-weight: 600; }

/* GRID CARDS */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  margin: 20px 0;
}
.grid-card {
  padding: 16px 18px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  text-decoration: none;
  transition: background .12s;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
a.grid-card:hover { background: var(--bg-soft); color: var(--ink); }
.grid-card .code { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-bottom: 3px; letter-spacing: 0.04em; }
.grid-card .title { font-weight: 500; color: var(--ink); }

.grid-card-area { padding: 22px 18px; min-height: 90px; }
.grid-card-area .code { color: var(--accent); font-weight: 700; font-size: 11px; }
.grid-card-area .title { font-family: var(--serif); font-size: 17px; font-weight: 600; }

/* FAQ */
.faq-item { border-top: 1px solid var(--hairline); padding: 20px 0; }
.faq-item:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq-q {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.faq-a { font-size: 16px; line-height: 1.6; color: var(--text); }

/* SYNONYMS */
.synonyms {
  font-size: 14px;
  color: var(--muted);
  margin: 20px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--hairline-2);
  border-bottom: 1px solid var(--hairline-2);
  line-height: 1.7;
}
.synonyms strong {
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  margin-right: 10px;
}
.synonyms a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.synonyms a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* FOOTER */
.footer { margin-top: 64px; padding: 36px 0 28px; border-top: 2px solid var(--ink); font-size: 13px; color: var(--muted); }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.footer p { font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
.footer-nav { margin-top: 12px; font-size: 13px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-meta { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 16px; }

/* ============================================================
   PATCH CSS — AdSense .ad-wrap
 
   ARQUIVO ALVO: /wp-content/themes/cargos-theme/assets/app.css
 
   Localize a seção "ADSENSE" (procure pelo comentário)
   Substitua AS 3 LINHAS dela pelo bloco abaixo
   ============================================================ */
 
/* ADSENSE */
.ad-wrap {
    margin: 28px auto;
    min-height: 90px;
    text-align: center;
    max-width: 970px;
    box-sizing: border-box;
}
.ad-wrap ins.adsbygoogle {
    display: block;
    width: 100%;
    height: 90px;
    max-width: 970px;
    margin: 0 auto;
}
 
@media (max-width: 768px) {
    .ad-wrap {
        min-height: 280px;
    }
    .ad-wrap ins.adsbygoogle {
        height: 280px;
        max-width: 336px;
    }
}
