:root { --ink: #071d1a; --ink-soft: #123c31; --gold: #eab453; --cream: #f6f0df; --muted: #bdc8c1; --line: rgba(255,255,255,.13); font-family: Arial, Helvetica, sans-serif; color: #fff; background: var(--ink); }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--ink); color: #fff; }
body.modal-open { overflow: hidden; }
.event-notice { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(2,18,14,.78); backdrop-filter: blur(4px); }.event-notice[hidden] { display: none; }.event-notice__dialog { position: relative; width: min(100%, 560px); border: 1px solid rgba(234,180,83,.55); border-radius: 14px; padding: 36px 38px 32px; color: #eff4ef; background: linear-gradient(145deg, #113b30, #09251f); box-shadow: 0 24px 70px rgba(0,0,0,.48); }.event-notice__dialog h2 { margin: 6px 34px 20px 0; color: #fff; font-size: clamp(25px,4vw,34px); line-height: 1.1; letter-spacing: -.025em; }.event-notice__dialog p { margin: 0 0 13px; color: #d7e2db; font-size: 16px; line-height: 1.55; }.event-notice__dialog strong { color: #f6d895; }.event-notice__signature { margin: 22px 0 0 !important; color: #f6d895 !important; font-weight: 800; }.event-notice__close { position: absolute; top: 13px; right: 14px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(234,180,83,.5); border-radius: 50%; padding: 0; color: #fff; background: rgba(255,255,255,.08); font-size: 28px; font-weight: 400; line-height: 1; }.event-notice__close:hover { color: #09251f; background: #f6d895; }
.site-header { min-height: 74px; border-bottom: 1px solid var(--line); background: #061714; display: flex; justify-content: space-between; align-items: center; padding: 14px max(20px, calc((100vw - 1180px) / 2)); gap: 20px; }
.brand { color: #fff; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: block; flex: 0 0 40px; width: 40px; height: 40px; }
.brand strong, .brand small { display: block; } .brand strong { font-size: 14px; letter-spacing: .08em; } .brand small { margin-top: 2px; color: #d7ad5d; font-size: 11px; letter-spacing: .17em; }
.admin-link, button { border-radius: 8px; font-weight: 700; font-size: 14px; transition: .18s ease; }
.admin-link { color: #f7d78d; border: 1px solid rgba(234,180,83,.48); padding: 10px 13px; text-decoration: none; } .admin-link:hover { background: rgba(234,180,83,.12); }
.shell { max-width: 1180px; padding: 62px 26px 78px; margin: auto; }
.intro { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 62px; }
.eyebrow { color: var(--gold); letter-spacing: .2em; font-size: 12px; font-weight: 800; margin: 0 0 18px; }
h1 { margin: 0; max-width: 660px; font-size: clamp(42px, 6vw, 72px); line-height: 1.03; letter-spacing: -.04em; }
.lead { margin: 22px 0 0; max-width: 670px; color: #d3ddd7; font-size: 18px; line-height: 1.7; }
.lookup-form { margin-top: 31px; display: flex; max-width: 590px; gap: 10px; }
input, textarea { width: 100%; color: #08211c; font: inherit; border: 1px solid rgba(7,29,26,.2); border-radius: 8px; padding: 12px 13px; background: #fff; outline: none; } input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(234,180,83,.18); }
.lookup-form input { min-height: 56px; padding: 12px 17px; font-size: 18px; font-weight: 800; letter-spacing: .06em; } button { cursor: pointer; border: 0; padding: 12px 17px; min-height: 45px; color: var(--ink); background: var(--gold); } button:hover { background: #f5c86d; } button.secondary { color: #fff; border: 1px solid rgba(255,255,255,.25); background: transparent; }
.lookup-form button { min-height: 56px; white-space: nowrap; }.notice { min-height: 23px; color: #f6d895; margin: 13px 0 0; font-size: 14px; line-height: 1.5; }
.feature-list { display: grid; gap: 11px; }.feature-list article { min-height: 124px; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.05); }.feature-list b { color: var(--gold); font-size: 13px; }.feature-list h2 { margin: 8px 0 0; font-size: 17px; }.feature-list p { color: var(--muted); line-height: 1.5; font-size: 14px; margin: 8px 0 0; }
.result { margin-top: 72px; }.result-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; }.result-head .eyebrow { margin: 0 0 5px; }.result-head h2 { margin: 0; font-size: 26px; }.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.certificate { position: relative; overflow: hidden; background: var(--cream); color: #173a30; border: 1px solid var(--gold); border-radius: 15px; padding: 25px; box-shadow: 0 25px 70px rgba(0,0,0,.25); }.certificate:before { position: absolute; content: ''; inset: 11px; border: 1px solid rgba(164,116,28,.38); pointer-events: none; }.certificate-inner { position: relative; min-height: 560px; border: 1px solid rgba(164,116,28,.28); padding: 38px; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }.certificate-top { display: flex; justify-content: space-between; gap: 15px; }.certificate-top p, .certificate-details > div > p { margin: 0; color: #9b6a13; font-weight: 800; font-size: 11px; letter-spacing: .2em; }.certificate-top h2 { font-size: 34px; margin: 9px 0 0; letter-spacing: -.03em; }.seal { display: grid; place-items: center; flex: 0 0 auto; width: 66px; height: 66px; border: 4px solid #a4741c; border-radius: 50%; color: #775112; font-size: 11px; line-height: 1.1; text-align: center; font-weight: 900; }.certificate-name > p { max-width: 710px; color: #49685d; font-size: 18px; line-height: 1.55; }.certificate-name strong { display: block; overflow-wrap: anywhere; color: #0d382c; font-size: clamp(37px, 7vw, 65px); letter-spacing: .05em; line-height: 1.1; margin: 14px 0; }.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }.metrics div { border: 1px solid rgba(164,116,28,.25); border-radius: 11px; padding: 15px; background: rgba(255,255,255,.43); }.metrics span { color: #775112; font-size: 13px; }.metrics strong { display: block; color: #0d382c; font-size: 23px; margin-top: 8px; overflow-wrap: anywhere; }.certificate-details { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 24px; border-top: 1px solid rgba(164,116,28,.3); }.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }.chips span { border: 1px solid rgba(164,116,28,.44); border-radius: 999px; padding: 7px 10px; color: #66470f; background: rgba(234,180,83,.16); font-size: 13px; font-weight: 700; }.park-list { margin-top: 12px; color: #35594c; line-height: 1.6; font-size: 14px; }.certificate-bottom { display: flex; justify-content: space-between; gap: 15px; color: #49685d; border-top: 1px solid rgba(164,116,28,.3); padding-top: 20px; font-size: 13px; }.certificate-bottom strong { color: #6f4d10; }
footer { border-top: 1px solid var(--line); padding: 28px 20px; color: #aab8b0; text-align: center; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.admin-shell { max-width: 1040px; margin: auto; padding: 48px 26px 72px; }.admin-card { border: 1px solid var(--line); background: rgba(255,255,255,.05); border-radius: 14px; padding: 25px; }.admin-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; }.admin-card h1, .admin-card h2 { margin-top: 0; }.admin-card p, .admin-card li { color: #c6d0ca; line-height: 1.6; }.field { display: block; margin-top: 15px; font-size: 14px; font-weight: 700; color: #e5ece7; }.field input, .field textarea { display: block; margin-top: 7px; }.field textarea { min-height: 90px; resize: vertical; }.checkbox { display: flex; align-items: center; gap: 9px; color: #e5ece7; font-size: 14px; font-weight: 700; }.checkbox input { width: 17px; height: 17px; accent-color: var(--gold); }.form-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }.flash { padding: 12px 14px; margin: 0 0 17px; border-radius: 8px; color: #f6d895; background: rgba(234,180,83,.12); border: 1px solid rgba(234,180,83,.28); }.danger { color: #ffd2d2; background: rgba(225,90,90,.14); border-color: rgba(255,140,140,.3); }.admin-nav { margin: 18px 0 28px; display: flex; gap: 15px; flex-wrap: wrap; }.admin-nav a { color: #f6d895; text-decoration: none; font-weight: 700; font-size: 14px; }.small { font-size: 13px; color: #aab8b0; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.checkbox-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }.uploads-section { margin-top: 46px; scroll-margin-top: 18px; }.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }.section-heading .eyebrow { margin-bottom: 8px; }.section-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.03em; }.record-count { flex: 0 0 auto; color: #f6d895; border: 1px solid rgba(234,180,83,.38); border-radius: 999px; padding: 7px 10px; font-size: 13px; font-weight: 700; }.empty-state h3 { margin-top: 0; }.upload-list { display: grid; gap: 15px; }.upload-card { scroll-margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.05); }.upload-card-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 23px 24px 18px; }.upload-card h3 { margin: 0; font-size: 21px; letter-spacing: -.02em; }.upload-card-head .eyebrow { margin-bottom: 8px; }.upload-meta { margin: 9px 0 0; color: #aab8b0; font-size: 13px; line-height: 1.5; }.current-endorsements { display: flex; max-width: 44%; justify-content: end; flex-wrap: wrap; gap: 6px; }.tag { display: inline-flex; align-items: center; border: 1px solid rgba(234,180,83,.4); border-radius: 999px; padding: 5px 8px; color: #f6d895; background: rgba(234,180,83,.1); font-size: 12px; font-weight: 700; line-height: 1.25; }.upload-stat-grid { display: grid; grid-template-columns: .7fr .7fr 1.35fr 1.35fr; border-top: 1px solid var(--line); background: rgba(0,0,0,.1); }.upload-stat-grid > div { min-width: 0; padding: 15px 17px; border-right: 1px solid var(--line); }.upload-stat-grid > div:last-child { border-right: 0; }.upload-stat-grid span { display: block; color: #aab8b0; font-size: 12px; font-weight: 700; }.upload-stat-grid > div > strong { display: block; margin-top: 6px; color: #fff; font-size: 23px; }.stat-breakdown p { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; }.stat-breakdown b { display: inline-flex; gap: 5px; align-items: center; border-radius: 5px; padding: 4px 6px; color: #e5ece7; background: rgba(255,255,255,.08); font-size: 12px; line-height: 1.2; }.stat-breakdown em { color: #f6d895; font-style: normal; }.endorsement-editor { border-top: 1px solid var(--line); }.endorsement-editor summary { cursor: pointer; color: #f6d895; padding: 16px 24px; font-size: 14px; font-weight: 800; }.endorsement-editor[open] summary { border-bottom: 1px solid var(--line); background: rgba(234,180,83,.07); }.endorsement-editor form { padding: 4px 24px 23px; }.editor-help { margin: 16px 0 0; color: #c6d0ca; line-height: 1.55; font-size: 14px; }
.upload-delete { border-top: 1px solid var(--line); }.upload-delete summary { cursor: pointer; color: #ffb7b7; padding: 16px 24px; font-size: 14px; font-weight: 800; }.upload-delete[open] summary { border-bottom: 1px solid rgba(255,140,140,.25); background: rgba(225,90,90,.08); }.upload-delete form { padding: 16px 24px 23px; }.upload-delete p { max-width: 780px; margin: 0 0 16px; color: #f0d4d4; font-size: 14px; line-height: 1.55; }.upload-delete-confirm { display: flex; align-items: start; gap: 9px; color: #fff; font-size: 14px; font-weight: 700; }.upload-delete-confirm input { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; padding: 0; accent-color: #c04545; }.upload-delete .delete-button { margin-top: 16px; color: #fff; background: #a93636; }.upload-delete .delete-button:hover { background: #c04545; }
.certificate-image-settings { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 26px; margin-top: 22px; scroll-margin-top: 18px; }.certificate-image-settings h2 { margin: 0; }.certificate-image-preview { display: grid; gap: 9px; }.certificate-image-preview img, .certificate-image-placeholder { width: 100%; aspect-ratio: 1.48; object-fit: cover; border: 1px solid rgba(234,180,83,.38); border-radius: 9px; }.certificate-logo-preview img { object-fit: contain; background: rgba(255,255,255,.07); }.certificate-image-placeholder { display: grid; place-items: center; color: #775112; background: var(--cream); font-size: 13px; font-weight: 800; }.certificate-image-preview .small { margin: 0; }
.station-sync-grid { margin-top: 18px; }.station-sync-grid .small { min-height: 34px; margin: 7px 0 0; line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 780px) { .two-fields, .upload-stat-grid { grid-template-columns: 1fr; }.section-heading, .upload-card-head { align-items: start; flex-direction: column; }.current-endorsements { max-width: none; justify-content: start; }.upload-stat-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }.upload-stat-grid > div:last-child { border-bottom: 0; }.endorsement-editor summary, .upload-delete summary { padding-left: 18px; padding-right: 18px; }.endorsement-editor form, .upload-delete form { padding-left: 18px; padding-right: 18px; } }
@media (max-width: 780px) { .certificate-image-settings { grid-template-columns: 1fr; } }
@media (max-width: 780px) { .site-header { padding: 13px 20px; }.shell { padding: 42px 20px 58px; }.intro, .admin-grid { grid-template-columns: 1fr; gap: 32px; }.lookup-form { flex-direction: column; }.result { margin-top: 55px; }.result-head { align-items: start; flex-direction: column; }.certificate { padding: 13px; }.certificate-inner { padding: 23px; min-height: 0; }.certificate-top h2 { font-size: 27px; }.metrics, .certificate-details { grid-template-columns: 1fr; }.certificate-bottom { flex-direction: column; }.brand strong { font-size: 12px; }.admin-link { font-size: 12px; } }
@media print { body { background: #fff; } .site-header, .intro, footer, .print-hidden, .event-notice { display: none !important; } .shell { padding: 0; max-width: none; } .result { margin: 0; } .certificate { border: 0; border-radius: 0; box-shadow: none; padding: 0; } .certificate:before { display: none; } }

/* Certificado visual — as duas versões usam a mesma composição e os mesmos dados. */
@font-face { font-family: 'Source Serif 4'; src: url('fonts/source-serif-4-roman.woff2') format('woff2'); font-style: normal; font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('fonts/source-sans-3-roman.woff2') format('woff2'); font-style: normal; font-weight: 200 900; font-display: swap; }
.certificate--v2 { --cert-serif: 'Source Serif 4', Georgia, serif; --cert-sans: 'Source Sans 3', Arial, sans-serif; padding: 14px; border: 1px solid #aa7c25; border-radius: 8px; color: #102f27; background-color: #f8f1df; box-shadow: 0 25px 70px rgba(0,0,0,.26); font-family: var(--cert-sans); font-optical-sizing: auto; font-variant-numeric: lining-nums; }
.certificate--v2:before { inset: 6px; border: 2px solid #0d3a2c; border-radius: 3px; }
.cert-frame { position: relative; isolation: isolate; min-height: 640px; padding: 28px 34px 22px; border: 2px solid #bd903a; outline: 1px solid rgba(16,54,42,.65); outline-offset: -8px; background: transparent; }
.cert-frame::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,252,239,.93) 0%, rgba(255,252,239,.86) 46%, rgba(255,252,239,.37) 100%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 69%, rgba(0,0,0,.28) 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 69%, rgba(0,0,0,.28) 100%); }
.cert-corner { position: absolute; z-index: 2; width: 31px; height: 31px; font-size: 0; background: url('corner-araucaria.svg') center / contain no-repeat; }
.cert-corner--tl { top: 6px; left: 8px; }.cert-corner--tr { top: 6px; right: 8px; transform: scaleX(-1); }.cert-corner--bl { bottom: 6px; left: 8px; }.cert-corner--br { right: 8px; bottom: 6px; transform: scaleX(-1); }
.cert-layout { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); gap: 20px; min-height: 484px; }
.cert-main { container-type: inline-size; min-width: 0; display: flex; flex-direction: column; padding: 7px 0 0 9px; }
.cert-brand { position: relative; display: flex; align-items: center; justify-content: center; min-height: 112px; padding-bottom: 12px; }
.cert-brand > div { flex: 0 1 auto; min-width: 0; text-align: center; }
.cert-brand-logo { position: absolute; left: 0; top: 50%; display: block; width: 76px; height: 76px; transform: translateY(-50%); object-fit: contain; }
.cert-brand-medal { position: absolute; left: 0; top: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 76px; height: 76px; transform: translateY(-50%); border: 5px double #b58222; border-radius: 50%; color: #946817; background: radial-gradient(circle at 35% 25%, #fff4c9, #e3c67d 65%, #bb8c2f); box-shadow: 0 0 0 2px #0d3a2c, 0 2px 8px rgba(34,37,20,.2); font: 600 34px/1 var(--cert-serif); }
.cert-brand-medal small { margin-top: 4px; font: 600 9px/1 var(--cert-sans); letter-spacing: .16em; }
.cert-brand p { margin: 0 0 6px; color: #856223; font: 600 10px/1.45 var(--cert-sans); letter-spacing: .1em; }
.cert-brand h2 { margin: 0; color: #123e30; font: 600 clamp(22px,7.8cqw,39px)/1.12 var(--cert-serif); letter-spacing: -.02em; text-wrap: balance; }
.cert-brand div > strong { display: block; color: #967026; font: 600 18px/1.3 var(--cert-sans); letter-spacing: .19em; margin-top: 7px; }
.cert-heading { color: #254638; padding: 15px 4px; border-top: 1px solid #b88c3d; border-bottom: 1px solid #b88c3d; font: 500 clamp(20px,5.5cqw,27px)/1.25 var(--cert-serif); text-align: center; text-wrap: balance; }
.cert-recipient { text-align: center; padding: 19px 0 8px; }.cert-recipient p { margin: 0 0 5px; color: #51675a; font: 400 13px/1.4 var(--cert-sans); letter-spacing: .03em; }.cert-recipient strong { display: block; overflow-wrap: anywhere; color: #103e30; font: 600 clamp(42px,16cqw,76px)/1.1 var(--cert-serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: .025em; }
.certificate--long-callsign .cert-recipient strong { font-size: clamp(28px,10cqw,52px); letter-spacing: .01em; }.certificate--very-long-callsign .cert-recipient strong { font-size: clamp(20px,6cqw,32px); }
.cert-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-top: 10px; border-top: 1px solid #ba9045; border-bottom: 1px solid #ba9045; padding: 15px 0; }.cert-metrics div { text-align: center; padding: 0 8px; border-right: 1px solid #ba9045; }.cert-metrics div:last-child { border-right: 0; }.cert-metrics strong { display: block; color: #173f30; font: 600 clamp(30px,8.5cqw,42px)/1.05 var(--cert-sans); font-variant-numeric: lining-nums tabular-nums; }.cert-metrics span { display: block; max-width: 130px; margin: 6px auto 0; color: #435c4e; font: 400 13px/1.3 var(--cert-sans); text-wrap: balance; }
.cert-recognition { max-width: 355px; margin: 25px auto 0; color: #435c4e; font: 400 13px/1.5 var(--cert-sans); text-align: center; text-wrap: balance; }.cert-recognition strong { color: #76551e; font-weight: 600; }
.certificate--hall .cert-recognition { display: none; }
.cert-achievements { margin-top: auto; padding-top: 18px; }.cert-small-title { margin: 0 0 11px; color: #856223; font: 600 11px/1.3 var(--cert-sans); letter-spacing: .13em; }.cert-achievements .cert-small-title { text-align: center; }
.cert-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; min-height: 92px; }.cert-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 82px; height: 82px; border-radius: 50%; border: 4px double #d7a83d; box-shadow: 0 0 0 2px #0c3a29, inset 0 0 0 3px #c39939, 0 4px 8px rgba(0,0,0,.2); color: #f6df9f; background: radial-gradient(circle at 40% 30%, #236b43, #0b3c2d 65%, #08271e); text-align: center; }.cert-badge-emblem { display: block; width: 34px; height: 34px; margin-bottom: 3px; }.cert-badge strong { font: 700 11px/1.1 var(--cert-sans); letter-spacing: .04em; }.cert-no-badges { align-self: center; color: #617369; font: 400 13px/1.5 var(--cert-sans); }
.cert-feature { position: relative; display: flex; flex-direction: column; justify-content: end; min-width: 0; padding: 10px 8px 14px; border-left: 1px solid rgba(169,126,46,.43); }.cert-feature-art { position: absolute; inset: 0 0 105px; display: grid; place-items: center; overflow: hidden; }.cert-feature-logo { position: relative; z-index: 1; display: block; width: min(68%,280px); max-height: 72%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(48,42,20,.2)); }.cert-commemorative-seal { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: min(57%,240px); aspect-ratio: 1; border: 7px double #b88b35; border-radius: 50%; color: #0d3c2c; background: radial-gradient(circle,rgba(255,252,238,.84),rgba(223,192,112,.55)); box-shadow: 0 0 0 3px #0e382a, 0 10px 24px rgba(76,60,24,.17); }.cert-commemorative-seal span { font: 600 12px/1.2 var(--cert-sans); letter-spacing: .12em; }.cert-commemorative-seal strong { font: 600 clamp(68px,10vw,120px)/.9 var(--cert-serif); font-variant-numeric: lining-nums proportional-nums; letter-spacing: -.04em; }.cert-commemorative-seal small { font: 600 18px/1.2 var(--cert-sans); letter-spacing: .24em; padding-left: .24em; }
.cert-hall-photo { display: none; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 8px 14px rgba(8,24,20,.22)); -webkit-mask-image: linear-gradient(to bottom,#000 0%,#000 78%,transparent 100%); mask-image: linear-gradient(to bottom,#000 0%,#000 78%,transparent 100%); }
.certificate--hall .cert-feature-art--photo .cert-commemorative-seal, .certificate--hall .cert-feature-art--photo .cert-feature-logo { display: none; }.certificate--hall .cert-hall-photo { display: block; }
.cert-feature-caption { position: relative; z-index: 1; padding: 15px 12px; border-top: 1px solid #bb8e35; border-bottom: 1px solid #bb8e35; text-align: center; background: rgba(255,249,228,.52); }.cert-feature-caption strong { display: block; color: #254638; font: 500 clamp(19px,2.2vw,25px)/1.25 var(--cert-serif); text-wrap: balance; }.cert-feature-caption p { margin: 8px 0 0; color: #435c4e; font: 400 14px/1.5 var(--cert-sans); text-wrap: balance; }
.cert-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 17px; border-top: 1px solid rgba(171,128,48,.6); padding: 16px 12px 12px; }.cert-endorsements { display: flex; flex-wrap: wrap; align-items: start; gap: 6px; color: #435c4e; font: 400 13px/1.45 var(--cert-sans); }.cert-endorsements span { color: #76551e; border: 1px solid rgba(171,128,48,.55); border-radius: 999px; padding: 4px 9px; background: rgba(249,231,178,.46); }.cert-parks { color: #435c4e; font: 400 13px/1.5 var(--cert-sans); }
.cert-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 5px; border-top: 1px solid rgba(171,128,48,.6); padding: 12px 42px 0; color: #51665a; font: 400 12px/1.4 var(--cert-sans); }.cert-footer strong { color: #76551e; font-weight: 600; }
.visual-preview-links { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }.visual-preview-links h2 { margin: 0; }.visual-preview-links .form-actions { flex: 0 0 auto; margin: 0; }.visual-preview-links .eyebrow { margin-bottom: 7px; }
@media (min-width: 901px) { .certificate--v2 { aspect-ratio: 297 / 210; }.cert-frame { display: grid; height: 100%; min-height: 0; grid-template-rows: minmax(0,1fr) auto auto; }.cert-layout { min-height: 0; } }
@media (min-width: 1041px) { .certificate--participation .cert-brand { min-height: 88px; padding-bottom: 6px; }.certificate--participation .cert-heading { padding-top: 8px; padding-bottom: 8px; }.certificate--participation .cert-recipient { padding-top: 8px; padding-bottom: 2px; }.certificate--participation .cert-metrics { margin-top: 6px; padding-top: 8px; padding-bottom: 8px; }.certificate--participation .cert-recognition { max-width: 455px; margin-top: 7px; font-size: 10px; line-height: 1.3; }.certificate--participation .cert-achievements { padding-top: 5px; }.certificate--participation .cert-small-title { margin-bottom: 5px; font-size: 9px; }.certificate--participation .cert-badges { min-height: 62px; gap: 8px; }.certificate--participation .cert-badge { width: 58px; height: 58px; border-width: 3px; }.certificate--participation .cert-badge-emblem { width: 23px; height: 23px; margin-bottom: 1px; }.certificate--participation .cert-badge strong { font-size: 8px; }.certificate--participation .cert-extras { margin-top: 9px; padding-top: 10px; padding-bottom: 8px; }.certificate--participation .cert-footer { padding-top: 8px; } }
@media (min-width: 901px) and (max-width: 1040px) { .cert-frame { padding: 20px 25px 15px; }.cert-layout { gap: 16px; }.cert-main { padding-top: 0; }.cert-brand { gap: 12px; min-height: 88px; padding-bottom: 7px; }.cert-brand-logo { flex-basis: 64px; width: 64px; height: 64px; }.cert-brand-medal { flex-basis: 64px; height: 64px; font-size: 29px; }.cert-brand p { margin-bottom: 3px; font-size: 8px; }.cert-brand h2 { font-size: clamp(22px,7.2cqw,33px); }.cert-brand div > strong { margin-top: 3px; font-size: 16px; }.cert-heading { padding: 9px 4px; font-size: clamp(19px,5.3cqw,24px); }.cert-recipient { padding: 11px 0 3px; }.cert-recipient strong { font-size: clamp(38px,13cqw,58px); }.cert-metrics { margin-top: 7px; padding: 10px 0; }.cert-metrics strong { font-size: clamp(27px,7.5cqw,36px); }.cert-metrics span { margin-top: 4px; font-size: 11px; }.cert-recognition { max-width: 390px; margin-top: 12px; font-size: 10px; line-height: 1.35; }.cert-achievements { padding-top: 10px; }.cert-small-title { margin-bottom: 7px; font-size: 9px; }.cert-badges { min-height: 70px; gap: 8px; }.cert-badge { width: 66px; height: 66px; }.cert-badge-emblem { width: 27px; height: 27px; margin-bottom: 2px; }.cert-badge strong { font-size: 9px; }.cert-feature { padding: 4px 5px 8px; }.cert-feature-art { inset: 0 0 78px; }.cert-feature-logo { width: min(65%,230px); }.cert-commemorative-seal { width: min(54%,210px); }.cert-feature-caption { padding: 9px 7px; }.cert-feature-caption strong { font-size: clamp(17px,2.2vw,22px); }.cert-feature-caption p { margin-top: 4px; font-size: 12px; }.cert-extras { gap: 16px; margin-top: 9px; padding: 10px 8px 8px; }.cert-endorsements { gap: 4px; font-size: 11px; }.cert-endorsements span { padding: 3px 7px; }.cert-parks { font-size: 11px; }.cert-footer { padding: 8px 38px 0; font-size: 10px; } }
@media (max-width: 900px) { .cert-frame { padding: 24px 22px 20px; }.cert-layout { grid-template-columns: 1fr; }.cert-main { padding: 0 5px; }.cert-feature { min-height: 0; padding-top: 20px; gap: 14px; border-left: 0; border-top: 1px solid rgba(169,126,46,.43); }.cert-feature-art { position: relative; inset: auto; flex: 0 0 220px; height: 220px; }.cert-feature-logo { width: min(68%,220px); max-height: 86%; }.cert-commemorative-seal { width: 170px; margin-top: 0; gap: 5px; }.cert-commemorative-seal strong { font-size: 76px; }.cert-commemorative-seal span { font-size: 10px; }.cert-commemorative-seal small { font-size: 13px; }.visual-preview-links { flex-direction: column; align-items: start; }.visual-preview-links .form-actions { margin-top: 0; } }
@media (max-width: 580px) { .certificate--v2 { padding: 8px; }.cert-frame { padding: 25px 17px 32px; }.cert-main { padding: 0; }.cert-brand { gap: 12px; min-height: 100px; }.cert-brand-logo { flex-basis: 60px; width: 60px; height: 60px; }.cert-brand-medal { flex-basis: 60px; height: 60px; font-size: 27px; }.cert-brand-medal small { font-size: 8px; }.cert-brand div > strong { font-size: 15px; }.cert-brand p { font-size: 9px; letter-spacing: .06em; }.cert-metrics div { padding: 0 5px; }.cert-metrics span { font-size: 12px; }.cert-badge { width: 71px; height: 71px; }.cert-badge-emblem { width: 30px; height: 30px; margin-bottom: 2px; }.cert-badge strong { font-size: 10px; }.cert-commemorative-seal { width: 150px; }.cert-extras { grid-template-columns: 1fr; gap: 15px; }.cert-footer { flex-direction: column; gap: 6px; } }
@page { size: A4 landscape; margin: 0; }
@media print { body { width: 297mm; height: 210mm; } .certificate--v2 { width: 297mm; height: 210mm; aspect-ratio: auto; padding: 3.5mm; print-color-adjust: exact; -webkit-print-color-adjust: exact; } .cert-frame { min-height: 0; } .cert-layout { min-height: 0; } }

/* Ranking público dos contatos da ZW50B. */
.header-nav { display: flex; align-items: center; gap: 18px; }.header-nav > a:not(.admin-link) { color: #f7d78d; font-size: 14px; font-weight: 700; text-decoration: none; }.header-nav > a:hover { text-decoration: underline; }.language-switcher { display: inline-flex; overflow: hidden; border: 1px solid rgba(234,180,83,.44); border-radius: 7px; }.language-button { min-height: 30px; min-width: 35px; border: 0; border-radius: 0; padding: 5px 8px; color: #dce9e0; background: transparent; font-size: 11px; font-weight: 800; letter-spacing: .08em; }.language-button + .language-button { border-left: 1px solid rgba(234,180,83,.3); }.language-button:hover { color: #09251f; background: #f6d895; }.language-button.is-active { color: #09251f; background: #eab453; }
.ranking-section { margin-top: 68px; padding: 27px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.05); scroll-margin-top: 22px; }
.ranking-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 21px; }.ranking-heading .eyebrow { margin-bottom: 8px; }.ranking-heading h2 { margin: 0; font-size: clamp(27px,3vw,38px); letter-spacing: -.03em; }.ranking-heading p:last-child { max-width: 680px; margin: 10px 0 0; color: #bacbc1; font-size: 14px; line-height: 1.5; }
.ranking-search { flex: 0 0 min(345px,42%); }.ranking-search label { display: block; margin-bottom: 7px; color: #e5ece7; font-size: 13px; font-weight: 700; }.ranking-search > div { display: flex; gap: 7px; }.ranking-search input { min-width: 0; }.ranking-search button { white-space: nowrap; }
.ranking-status { min-height: 20px; margin: 0 0 13px; color: #dfc382; font-size: 14px; }.ranking-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }.ranking-table { width: 100%; min-width: 620px; border-collapse: collapse; }.ranking-table thead { background: rgba(234,180,83,.12); }.ranking-table th,.ranking-table td { text-align: left; }.ranking-table > thead th { padding: 13px 16px; color: #f6d895; font-size: 11px; letter-spacing: .16em; }.ranking-main-row { border-top: 1px solid var(--line); }.ranking-main-row > th,.ranking-main-row > td { padding: 13px 16px; vertical-align: middle; }.ranking-main-row:hover { background: rgba(255,255,255,.04); }.ranking-call,.ranking-expand { min-height: 0; padding: 0; border: 0; background: transparent; }.ranking-call { color: #fff; font-size: 16px; letter-spacing: .045em; }.ranking-call:hover,.ranking-expand:hover { color: #fff; background: transparent; text-decoration: underline; }.ranking-position { margin-right: 9px; color: #aab8b0; font-size: 12px; font-weight: 400; }.ranking-expand { color: #f6d895; font-size: 13px; white-space: nowrap; }.ranking-total { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }.ranking-total strong { color: #fff; font-size: 18px; font-weight: 800; }.ranking-total span { color: #aab8b0; font-size: 11px; font-weight: 600; }.ranking-achievements { min-width: 220px; }.achievement-pill { display: inline-block; margin: 2px 4px 2px 0; padding: 5px 7px; border: 1px solid rgba(234,180,83,.45); border-radius: 999px; color: #f6d895; background: rgba(234,180,83,.1); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.ranking-detail-row[hidden] { display: none; }.ranking-detail-row > td { padding: 3px 14px 17px; background: rgba(0,0,0,.17); }.band-grid-scroll { max-width: 100%; overflow-x: auto; border: 1px solid rgba(234,180,83,.25); border-radius: 8px; outline-offset: 2px; }.band-grid { width: 100%; min-width: 1380px; border-collapse: collapse; table-layout: fixed; }.band-grid th,.band-grid td { width: 106px; border-right: 1px solid var(--line); text-align: center; }.band-grid th:last-child,.band-grid td:last-child { border-right: 0; }.band-grid th { padding: 9px 4px; color: #f6d895; background: rgba(234,180,83,.1); font-size: 11px; letter-spacing: .06em; }.band-grid td { height: 54px; padding: 8px 4px; vertical-align: top; }.band-grid-empty { color: #73877b; }.mode-pills { display: flex; flex-direction: column; align-items: center; gap: 4px; }.mode-pill { max-width: 100%; border-radius: 6px; padding: 5px 6px; color: #e8f3e8; background: #1c5b42; font-size: 11px; font-weight: 800; white-space: nowrap; }
.ranking-pagination { display: flex; align-items: center; justify-content: end; gap: 12px; margin-top: 14px; color: #c9d5cd; font-size: 13px; }.ranking-pagination button { min-height: 36px; padding: 7px 11px; font-size: 12px; }.ranking-pagination button:disabled { opacity: .4; cursor: default; }
@media (max-width: 780px) { .header-nav { gap: 8px; }.header-nav > a:not(.admin-link) { font-size: 12px; }.language-button { min-width: 31px; padding-left: 6px; padding-right: 6px; }.ranking-section { padding: 18px 13px; }.ranking-heading { flex-direction: column; align-items: stretch; gap: 17px; }.ranking-search { flex-basis: auto; }.ranking-table > thead th,.ranking-main-row > th,.ranking-main-row > td { padding-left: 11px; padding-right: 11px; } }
.ranking-table { table-layout: fixed; }.ranking-table > thead th:nth-child(1) { width: 23%; }.ranking-table > thead th:nth-child(2) { width: 23%; }.ranking-table > thead th:nth-child(3) { width: 15%; }.ranking-table > thead th:nth-child(4) { width: 39%; }
.ranking-scroll-hint { display: none; margin: -3px 0 10px; color: #becdc4; font-size: 12px; }.band-grid-hint { margin: 7px 0; color: #becdc4; font-size: 12px; }
.band-grid { min-width: 1248px; }.band-grid th,.band-grid td { width: 96px; }.mode-pill { font-size: 10px; }
@media (max-width: 780px) { .ranking-scroll-hint { display: block; }.band-grid-scroll { width: min(100%, calc(100vw - 82px)); } }
.reindex-form { border-top: 1px solid var(--line); padding-top: 17px !important; }.reindex-form .small { margin: 9px 0 0; }
