:root{
  --bg:#232323;--card:#151515;--card2:#1c1c1c;--line:#393939;--line2:#2e2e2e;
  --gold:#c98c4d;--gold2:#e0aa64;--gold3:#8a582b;--text:#f5f5f5;--muted:#cfd2d7;
  --green:#52eb82;--radius:20px;--shadow:0 18px 55px rgba(0,0,0,.25);
}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:radial-gradient(circle at 50% 0,rgba(255,255,255,.025),transparent 38%),linear-gradient(180deg,#292929 0,#222 48%,#1f1f1f 100%)}
.page-shell{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:36px 16px}.page-shell>header,.page-shell>main{flex-shrink:0}.container{width:min(1240px,100%);margin-inline:auto}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.card{background:linear-gradient(180deg,rgba(22,22,22,.99),rgba(17,17,17,.99));border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}

.site-header{text-align:center;margin-bottom:18px}.brand-logo{display:block;width:min(280px,52vw);height:auto;margin:0 auto 10px;object-fit:contain}.site-header h1{margin:0;font-size:clamp(30px,3.4vw,44px);line-height:1.08;letter-spacing:-.035em}.site-header h1 span{color:var(--gold)}.site-header p{margin:7px 0 0;font-size:clamp(14px,1.4vw,18px);color:#e4e4e4}

.search-card{width:min(920px,100%);margin:0 auto 18px;padding:18px 20px 16px}.search-tabs{display:grid;grid-template-columns:1fr 1fr;max-width:520px;margin:0 auto 16px;border:1px solid #454545;border-radius:13px;overflow:hidden}.search-tab{min-height:42px;border:0;background:#202020;color:#fff;font:inherit;font-weight:800;font-size:14px;cursor:pointer;padding:7px 12px}.search-tab+.search-tab{border-left:1px solid #454545}.search-tab.active{background:#353535}.search-grid{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:10px;align-items:center}.search-control{min-height:50px;display:grid;grid-template-columns:44px 1fr 38px;align-items:center;background:#fff;border:2px solid var(--gold);border-radius:27px;box-shadow:0 0 0 4px rgba(201,140,77,.08);overflow:hidden}.search-icon{display:grid;place-items:center;color:#20242b}.search-icon svg{width:19px;height:19px}.search-control input{width:100%;height:48px;border:0;outline:0;background:transparent;font:inherit;font-size:14.5px;color:#20242b;padding:0 4px}.search-control input::placeholder{color:#9aa0a8}.clear-search{border:0;background:transparent;color:#989ea7;font-size:26px;cursor:pointer;width:100%;height:100%;line-height:1}.search-help{margin:10px 0 0;text-align:center;color:#ddd;font-size:12.8px}.form-message{min-height:16px;margin:6px 0 0;text-align:center;color:#ffc3c3;font-size:12.5px}
.btn{font:inherit;border:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:800;transition:.2s ease}.btn:hover{transform:translateY(-1px)}.btn-gold{height:50px;border-radius:26px;background:linear-gradient(135deg,var(--gold2),var(--gold));color:#fff;font-size:14px;box-shadow:0 8px 22px rgba(201,140,77,.18)}.btn-gold-soft{padding-inline:22px;min-width:210px}.btn-outline{padding:11px 20px;border-radius:26px;background:transparent;border:2px solid var(--gold);color:#fff;font-size:13px}.spinner{display:none;width:16px;height:16px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:spin .75s linear infinite}.loading .spinner{display:block}.loading .btn-text{display:none}@keyframes spin{to{transform:rotate(360deg)}}

.matches-card,.result-card,.empty-state{padding:22px 24px;margin-bottom:18px}.matches-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:15px}.matches-head h2{font-size:25px;margin:0 0 3px}.matches-head h2 span{color:var(--gold)}.matches-head p{margin:0;color:#ddd;font-size:13.5px}.sort-control{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:13px}.sort-control select{background:#202020;color:#fff;border:1px solid #484848;border-radius:10px;padding:10px 34px 10px 12px;font-size:13px}.matches-list{display:grid;gap:9px}.match-item{display:grid;grid-template-columns:minmax(0,1.8fr) 100px 200px;gap:16px;align-items:center;padding:11px 13px;border:1px solid var(--gold3);border-radius:14px;background:#1d1d1d}.match-person{display:flex;align-items:center;gap:12px;min-width:0}.match-avatar{width:44px;height:44px;border:2px solid var(--gold);border-radius:50%;display:grid;place-items:center;color:var(--gold);font-size:20px;flex:0 0 auto}.match-name{font-weight:800;font-size:15px;line-height:1.22}.match-meta{margin-top:3px;color:#e4e4e4;font-size:12px}.match-count{display:grid;justify-items:center;gap:1px;padding-inline:8px;border-left:1px solid #4a4a4a}.match-count strong{font-size:15px}.match-count span{color:#ddd;font-size:12px}.view-btn{min-height:42px;border:1px solid var(--gold);border-radius:999px;background:transparent;color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer;padding:0 12px}.view-btn:hover{background:rgba(201,140,77,.08)}.pagination{display:flex;justify-content:center;gap:8px;margin-top:16px}.page-btn{width:40px;height:40px;border-radius:10px;border:1px solid #4a4a4a;background:#222;color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.page-btn.active{background:linear-gradient(135deg,var(--gold2),var(--gold));border-color:transparent}.page-btn:disabled{opacity:.45}

.section-title-row{display:flex;align-items:flex-start;gap:11px;margin-bottom:15px}.title-icon{color:var(--gold);font-size:28px;line-height:1;padding-top:2px}.section-title-row h2{margin:0;font-size:clamp(27px,2.7vw,34px);line-height:1.1}.section-title-row p{margin:5px 0 0;color:#e2e2e2;font-size:13px}.person-summary{display:grid;grid-template-columns:60px minmax(0,1.5fr) 1px minmax(150px,.65fr) 1px minmax(190px,.8fr);gap:16px;align-items:center;padding:16px 18px;margin-bottom:15px;border:1px solid var(--gold3);border-radius:17px;background:#1d1d1d}.avatar{width:50px;height:50px;border-radius:50%;border:2px solid var(--gold);display:grid;place-items:center;color:var(--gold);font-size:22px}.eyebrow{display:block;color:#fff;margin-bottom:4px;font-size:12px}.person-block strong,.status-wrap strong{display:block;font-size:15px;line-height:1.25}.divider{width:1px;height:48px;background:#4a4a4a}.status-wrap{display:flex;align-items:center;gap:11px}.status-check{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:#0e3d1f;font-weight:900;font-size:24px;box-shadow:0 0 0 5px rgba(82,235,130,.09)}.status-valid{color:var(--green)}.compact-block strong{font-size:16px}

.cert-table-wrap{display:block;overflow:auto;border:1px solid #333;border-radius:15px}.cert-table{width:100%;border-collapse:collapse;min-width:940px;background:#171717}.cert-table thead th{text-align:left;padding:14px 12px;background:linear-gradient(180deg,#343434,#2f2f2f);color:#fff;font-size:13px;border-bottom:1px solid #444;vertical-align:top}.cert-table tbody td{padding:14px 12px;border-top:1px solid #2f2f2f;color:#fff;vertical-align:top;font-size:12.5px;line-height:1.42}.cert-table tbody tr:hover{background:#1e1e1e}.cert-table .col-course{min-width:210px}.cert-table .col-period{min-width:235px}.cert-table .col-code{min-width:230px;word-break:break-word}.cert-table .col-state{min-width:120px}.state-cell{white-space:nowrap}.state-badge{display:inline-flex;align-items:center;gap:7px;color:var(--green);font-weight:800}.state-badge .badge-check{width:24px;height:24px;border-radius:50%;background:var(--green);color:#0f4021;display:grid;place-items:center;font-size:15px;font-weight:900}
.cert-cards{display:none;gap:10px}.cert-item{border:1px solid #353535;border-radius:15px;background:#181818;padding:13px}.cert-item h3{margin:0 0 8px;font-size:16px;line-height:1.25}.cert-item .doc-type{display:inline-block;margin:0 0 10px;padding:5px 8px;border-radius:999px;background:#252525;color:#f5d7b0;font-weight:700;font-size:11.5px}.cert-detail{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px}.cert-detail div{display:grid;gap:4px}.cert-detail .wide{grid-column:1/-1}.cert-detail span{color:#d1d4d9;font-size:10.5px}.cert-detail strong{font-size:12.5px;line-height:1.4}.mobile-state{padding-top:7px;border-top:1px solid #303030}
.detail-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:17px}.empty-state{text-align:center;padding-block:32px}.empty-icon{width:54px;height:54px;margin:0 auto 13px;border-radius:50%;border:2px solid var(--gold);display:grid;place-items:center;color:var(--gold);font-size:28px;font-weight:900}.empty-state h2{margin:0 0 8px;font-size:28px}.empty-state p{max-width:620px;margin:0 auto 17px;color:#dfdfdf;line-height:1.5;font-size:13.5px}
.support-card{display:flex;align-items:center;gap:14px;padding:16px 20px}.info-icon{width:38px;height:38px;border-radius:50%;border:2px solid #d7dbe2;color:#fff;display:grid;place-items:center;font-size:23px;font-style:italic;flex:0 0 auto}.support-card p{margin:0;font-size:12.8px;line-height:1.45}.support-whatsapp{color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.35)}

/* Refined visual hierarchy and interaction states */
body{background:radial-gradient(ellipse at 50% 35%,rgba(201,140,77,.085),transparent 58%),linear-gradient(145deg,#252627,#191a1b);color:#f4f2ee}
.page-shell{padding-block:48px}
.site-header{margin-bottom:28px}
.brand-logo{width:min(238px,52vw);margin-bottom:24px}
.archive-label{display:inline-block;margin-bottom:14px;padding:7px 12px;border:1px solid rgba(201,140,77,.28);border-radius:999px;background:rgba(201,140,77,.06);color:#dfb583;font-size:10px;font-weight:700;letter-spacing:.15em}
.site-header h1{font-size:clamp(30px,3.4vw,43px);font-weight:750;letter-spacing:-.04em;line-height:1.17}
.site-header p{margin-top:12px;color:#b9babd;font-size:15px;line-height:1.6}
.app-layout{max-width:1000px}
.card{background:linear-gradient(140deg,#232323,#1b1b1c);border-color:#3a3834;box-shadow:0 18px 48px rgba(0,0,0,.18)}
.search-card{width:min(820px,100%);padding:28px 32px 22px;border-radius:24px;margin-bottom:20px;border-top-color:#6b5339}
.search-intro{margin-bottom:22px}
.search-intro h3{margin:0;font-size:20px;letter-spacing:-.025em;font-weight:650}
.search-intro p{margin:6px 0 0;color:#aaa9a7;font-size:13px;line-height:1.5}
.search-tabs{max-width:none;margin-bottom:20px;padding:5px;gap:5px;border-radius:13px;border-color:#373737;background:#171718}
.search-tab{border-radius:8px;background:transparent;color:#aaa;min-height:42px;font-size:13px;font-weight:600;transition:background .18s,color .18s}
.search-tab+.search-tab{border-left:0}
.search-tab.active{background:#36332f;color:#f1cfaa;box-shadow:0 2px 5px #0002}
.search-tab:hover{color:#fff}
.search-grid{grid-template-columns:minmax(0,1fr) 140px;gap:12px}
.search-control{border:1px solid #56514a;border-radius:12px;box-shadow:none;min-height:54px;background:#f5f4f1;transition:border-color .18s,box-shadow .18s}
.search-control:focus-within{border-color:#e0aa64;box-shadow:0 0 0 3px #d49b5430}
.search-control input{height:52px}
.btn-gold{height:54px;border-radius:12px;color:#231a10;background:linear-gradient(120deg,#e6ba7e,#ce9657);box-shadow:0 6px 18px #c98c4d18;font-weight:750}
.btn-text{display:inline-flex;align-items:center;gap:22px}
.btn-text>span{font-size:20px;font-weight:400}
.search-help{margin-top:14px;color:#a9a7a3;font-size:12px}
.form-message:empty{display:none}
.support-card{max-width:820px;margin-inline:auto;padding:18px 22px;border-radius:16px;background:rgba(255,255,255,.025);box-shadow:none;border-color:#ffffff12}
.info-icon{width:34px;height:34px;font-size:18px;border:1px solid #76634d;color:#d8b184;background:#c98c4d0a}
.support-card p{color:#a9a9aa;font-size:12px;line-height:1.7}
.support-card strong{font-weight:600;color:#e3dfd9;font-size:13px}
.support-whatsapp{color:#e3b782;border-bottom-color:#c98c4d55;white-space:nowrap}
.matches-card,.result-card,.empty-state{border-radius:20px}
.match-item,.person-summary{border-color:#645039;background:#ffffff03}
.view-btn{border-radius:10px;color:#e5b985}
.cert-table thead th{background:#302d29;color:#e9d8c4}
.cert-table tbody td{color:#ddd}
.cert-table .col-course{font-weight:600;color:#fff}
.btn-outline{border-width:1px;border-radius:12px}
button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid #e6ba7e;outline-offset:4px}
button:disabled{cursor:wait;opacity:.65}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Tablet horizontal */
@media (max-width:1100px){
  .container{width:min(1000px,100%)}
  .brand-logo{width:min(250px,50vw)}
  .site-header h1{font-size:clamp(29px,4vw,38px)}
  .search-card{width:min(820px,100%)}
  .match-item{grid-template-columns:minmax(0,1fr) 90px 175px;gap:12px}
  .person-summary{grid-template-columns:54px minmax(0,1fr) minmax(135px,.6fr) minmax(180px,.8fr);gap:12px}
  .person-summary .divider{display:none}
  .cert-table{min-width:880px}
}

/* Tablet vertical */
@media (max-width:820px){
  .page-shell{padding:28px 12px}
  .brand-logo{width:min(225px,56vw);margin-bottom:8px}
  .site-header h1{font-size:clamp(26px,5vw,34px)}
  .site-header p{font-size:14px}
  .search-card{width:min(720px,100%);padding:16px 18px 14px}
  .search-tabs{max-width:470px;margin-bottom:14px}
  .search-tab{min-height:40px;font-size:13px}
  .search-grid{grid-template-columns:minmax(0,1fr) 130px}
  .search-control{min-height:46px;grid-template-columns:40px 1fr 34px}
  .search-control input{height:44px;font-size:13.5px}
  .btn-gold{height:46px;font-size:13px}
  .search-help{font-size:11.8px}
  .matches-card,.result-card,.empty-state{padding:18px}
  .matches-head h2{font-size:22px}
  .matches-head p{font-size:12.5px}
  .match-item{grid-template-columns:minmax(0,1fr) 80px 160px;padding:10px 11px}
  .match-avatar{width:40px;height:40px;font-size:18px}
  .match-name{font-size:13.5px}.match-meta{font-size:11.5px}.view-btn{min-height:40px;font-size:12px}
  .section-title-row h2{font-size:25px}.section-title-row p{font-size:12px}
  .person-summary{grid-template-columns:48px minmax(0,1fr) minmax(125px,.6fr) minmax(170px,.8fr);padding:13px 14px}
  .avatar{width:44px;height:44px;font-size:19px}.person-block strong,.status-wrap strong{font-size:13.5px}.eyebrow{font-size:11px}.status-check{width:34px;height:34px;font-size:21px}
  .cert-table{min-width:820px}.cert-table thead th{font-size:12px;padding:12px 10px}.cert-table tbody td{font-size:11.8px;padding:12px 10px}
}

/* Mobile */
@media (max-width:640px){
  .page-shell{padding:22px 8px}
  .container{width:100%}
  .site-header{margin-bottom:14px}
  .brand-logo{width:min(185px,58vw);margin-bottom:7px}
  .site-header h1{font-size:clamp(22px,6.4vw,28px);line-height:1.1}
  .site-header p{font-size:12px;margin-top:5px}
  .card{border-radius:15px}
  .search-card{width:100%;padding:12px 12px 11px;margin-bottom:14px}
  .search-tabs{max-width:none;margin-bottom:11px;border-radius:11px}
  .search-tab{min-height:38px;font-size:11.5px;padding:5px 7px;line-height:1.2}
  .search-grid{grid-template-columns:1fr;gap:8px}
  .search-control{min-height:42px;grid-template-columns:36px 1fr 32px;border-radius:22px;box-shadow:0 0 0 3px rgba(201,140,77,.07)}
  .search-icon svg{width:17px;height:17px}.search-control input{height:40px;font-size:12.5px}.clear-search{font-size:22px}
  .btn-gold{height:42px;width:100%;font-size:12px;border-radius:22px}
  .search-help{font-size:10.5px;margin-top:8px}.form-message{font-size:10.5px;min-height:14px;margin-top:4px}
  .matches-card,.result-card,.empty-state{padding:13px;margin-bottom:14px}
  .matches-head{flex-direction:column;align-items:stretch;gap:10px;margin-bottom:12px}.matches-head h2{font-size:19px}.matches-head p{font-size:11px}.sort-control{font-size:10.5px;justify-content:space-between}.sort-control select{font-size:10.5px;padding:8px 28px 8px 9px}
  .match-item{grid-template-columns:1fr;gap:8px;padding:9px;border-radius:12px}.match-avatar{width:36px;height:36px;font-size:16px}.match-name{font-size:12.5px}.match-meta{font-size:10.5px}.match-count{justify-items:start;border-left:0;border-top:1px solid #3c3c3c;padding:7px 0 0}.match-count strong{font-size:13px}.match-count span{font-size:10px}.view-btn{width:100%;min-height:36px;font-size:11px;padding:0 10px}
  .section-title-row{gap:8px;margin-bottom:11px}.title-icon{font-size:21px}.section-title-row h2{font-size:20px}.section-title-row p{font-size:10.5px;margin-top:3px}
  .person-summary{grid-template-columns:40px 1fr;gap:9px;padding:10px;border-radius:13px}.avatar{width:36px;height:36px;font-size:16px}.avatar{grid-row:1 / span 3}.status-wrap{grid-column:2}.eyebrow{font-size:9.5px;margin-bottom:2px}.person-block strong,.status-wrap strong,.compact-block strong{font-size:12px}.status-check{width:29px;height:29px;font-size:18px;box-shadow:0 0 0 4px rgba(82,235,130,.08)}
  .cert-table-wrap{display:none}.cert-cards{display:grid;gap:8px}.cert-item{padding:10px;border-radius:12px}.cert-item h3{font-size:13.5px;margin-bottom:6px}.cert-item .doc-type{font-size:9.5px;padding:4px 7px;margin-bottom:8px}.cert-detail{grid-template-columns:1fr 1fr;gap:7px 8px}.cert-detail span{font-size:9px}.cert-detail strong{font-size:11px}.state-badge{font-size:11px;gap:6px}.state-badge .badge-check{width:20px;height:20px;font-size:12px}
  .detail-actions{flex-direction:column;gap:8px;margin-top:12px}.detail-actions .btn{width:100%;min-height:38px;font-size:11px;padding:8px 10px}
  .empty-state{padding-block:24px}.empty-icon{width:44px;height:44px;font-size:23px}.empty-state h2{font-size:21px}.empty-state p{font-size:11px}
  .support-card{gap:10px;padding:12px}.info-icon{width:30px;height:30px;font-size:18px}.support-card p{font-size:10.5px;line-height:1.4}
  .page-shell{padding-block:28px}
  .brand-logo{margin-bottom:18px}
  .archive-label{font-size:8px;letter-spacing:.12em;margin-bottom:12px}
  .site-header{margin-bottom:22px}
  .site-header p{line-height:1.6;margin-top:10px}
  .search-card{padding:20px 16px 18px;border-radius:18px}
  .search-intro{margin-bottom:16px}
  .search-intro h3{font-size:18px}
  .search-intro p{font-size:12px}
  .search-tabs{padding:4px;gap:4px;margin-bottom:16px}
  .search-tab{min-height:42px;font-size:11px}
  .search-control{min-height:48px;border-radius:10px;box-shadow:none}
  .search-control input{height:46px;font-size:13px}
  .btn-gold{height:46px;border-radius:10px;font-size:13px}
  .search-help{font-size:11px;line-height:1.5;margin-top:12px}
  .support-card{padding:15px;border-radius:14px}
  .support-card p{font-size:11px;line-height:1.7}
  .support-card strong{font-size:12px}
}

/* Mobile muy pequeño */
@media (max-width:390px){
  .brand-logo{width:min(165px,60vw)}
  .site-header h1{font-size:21px}.site-header p{font-size:11px}
  .search-tab{font-size:10.5px}.search-control input{font-size:11.8px}
  .cert-detail{grid-template-columns:1fr}.cert-detail .wide{grid-column:auto}
  .person-summary{grid-template-columns:34px 1fr}.avatar{width:32px;height:32px;font-size:14px}
}

/* Simple search: readable labels and an unmistakable selected option. */
.search-intro h3{font-size:24px}
.search-intro p{font-size:15px;color:#d1ceca}
.search-label{display:block;margin-bottom:9px;font-size:15px;font-weight:650;color:#f4f2ee}
.search-tabs{background:transparent;border:0;padding:0;gap:12px;margin-bottom:24px}
.search-tab{border:1px solid #68635c;background:#222;color:#e1ded9;min-height:46px;font-size:14px}
.search-tab+.search-tab{border-left:1px solid #68635c}
.search-tab.active{background:#e1b077;border-color:#e1b077;color:#251b10;box-shadow:none}
.search-tab.active:hover{color:#251b10}
.search-grid{grid-template-columns:minmax(0,1fr) 185px}
.search-control input{font-size:16px}
.search-control input::placeholder{color:#686d74}
.search-help{text-align:left;color:#c1bdb7;font-size:13px;margin-top:10px}
.support-card p{font-size:14px}
.support-card strong{font-size:15px}
.support-whatsapp{font-weight:650}
@media(max-width:640px){
  .search-intro h3{font-size:21px}
  .search-intro p{font-size:14px;line-height:1.6}
  .search-tabs{gap:8px;margin-bottom:20px}
  .search-tab{font-size:12px;min-height:46px}
  .search-grid{grid-template-columns:1fr;gap:12px}
  .search-control input{font-size:16px}
  .search-label{font-size:14px}
  .btn-gold{font-size:15px;min-height:48px}
  .search-help{font-size:12px}
  .support-card p{font-size:13px}
  .support-card strong{font-size:14px}
}

/* Search modes are tabs; the filled button is reserved for submitting. */
.search-tabs{gap:24px;padding:0;border:0;border-bottom:1px solid #49443e;border-radius:0;overflow:visible;background:transparent}
.search-tab,.search-tab+.search-tab{position:relative;min-height:46px;padding:10px 4px 14px;border:0;border-radius:0;background:transparent;color:#bdb9b3;box-shadow:none}
.search-tab.active,.search-tab.active:hover{background:transparent;border-color:transparent;color:#edc18b;box-shadow:none}
.search-tab.active::after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;border-radius:3px 3px 0 0;background:#dfac70}
.search-tab:hover{background:transparent;color:#fff}
@media(max-width:640px){.search-tabs{gap:16px}.search-tab,.search-tab+.search-tab{font-size:12px;min-height:46px;padding:10px 2px 14px}}

/* Certificate details fit the available width without horizontal scrolling. */
.cert-table{min-width:0;width:100%;table-layout:fixed}
.cert-table th,.cert-table td{overflow-wrap:anywhere}
.cert-table .col-course,.cert-table .col-period,.cert-table .col-code,.cert-table .col-state{min-width:0}
.cert-table th:nth-child(1){width:23%}
.cert-table th:nth-child(2){width:14%}
.cert-table th:nth-child(3){width:7%}
.cert-table th:nth-child(4){width:7%}
.cert-table th:nth-child(5){width:22%}
.cert-table th:nth-child(6){width:17%}
.cert-table th:nth-child(7){width:10%}
.cert-table thead th{padding:14px 10px;font-size:12px;line-height:1.5}
.cert-table tbody td{padding:16px 10px;font-size:12px;line-height:1.6}
.cert-table .col-code{font-size:11px;color:#bbb5ac}
.cert-table .state-cell{white-space:normal}
.cert-table .state-badge{gap:5px;font-size:11px}
.cert-table .badge-check{width:19px;height:19px;flex-shrink:0;font-size:12px}
.section-title-row h2{font-size:clamp(22px,2.4vw,29px)}
@media(min-width:641px) and (max-width:900px){
  .cert-table-wrap{display:none}
  .cert-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}
.cert-detail strong{overflow-wrap:anywhere}
@media(max-width:640px){.section-title-row h2{font-size:21px}}

/* Neutral surfaces keep the gold accent focused on the primary action. */
body{background:radial-gradient(ellipse at 50% 30%,rgba(255,255,255,.025),transparent 60%),linear-gradient(145deg,#252627,#191a1b)}
.site-header h1 span{color:inherit}
.card,.search-card{border-color:#3c3d3e}
.search-tabs{border-bottom-color:#424345}
.search-tab.active,.search-tab.active:hover{color:#fff}
.search-tab.active::after{background:#d4d5d6;height:2px}
.support-card{border-color:#ffffff12}
.info-icon{border-color:#686b70;color:#c5c8cd;background:transparent}
.support-whatsapp{color:#e2e3e5;border-bottom-color:#76797e}
.matches-head h2 span{color:#d6d7da}
.match-item,.person-summary{border-color:#454648}
.match-avatar,.avatar{border-color:#64676c;color:#c1c4c9}
.title-icon{color:#c1c4c9}
.view-btn{border-color:#64676c;color:#f0f0f0}
.view-btn:hover{background:rgba(255,255,255,.06)}
.btn-outline{border-color:#64676c;color:#eee}
.cert-table thead th{background:#2d2e30;color:#dddfe2}
.cert-item .doc-type{background:#2c2d2f;color:#d9dce0}
.empty-icon{border-color:#64676c;color:#c1c4c9}
.result-card .btn-gold-soft{background:#343638;color:#f3f3f3;border:1px solid #64676c;box-shadow:none}

/* Compact, readable participant results on phones. */
@media(max-width:640px){
  .matches-card{padding:18px 14px;border-radius:18px}
  .matches-head{gap:14px;margin-bottom:16px}
  .matches-head h2{font-size:21px;line-height:1.35;margin-bottom:5px}
  .matches-head p{font-size:13px;line-height:1.5;color:#bbb}
  .sort-control{justify-content:flex-start;gap:10px;font-size:12px;color:#bbb}
  .sort-control select{min-height:44px;font-size:13px;padding:8px 30px 8px 12px;flex:1;max-width:210px}
  .matches-list{gap:10px}
  .match-item{grid-template-columns:minmax(0,1fr) auto;gap:10px 8px;padding:15px 13px;border-radius:12px;background:#ffffff03;border-color:#414244}
  .match-person{grid-column:1/-1;gap:0}
  .match-person>div:last-child{min-width:0}
  .match-avatar{display:none}
  .match-name{font-size:14px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
  .match-meta{font-size:12px;margin-top:4px;color:#b8bbc0;line-height:1.5}
  .match-count{display:flex;align-items:center;gap:4px;padding:0;border:0;align-self:center}
  .match-count strong,.match-count span{font-size:12px;line-height:1.5;color:#bbb;font-weight:400}
  .view-btn{width:auto;min-height:44px;padding:8px 10px;font-size:12px;border:0;background:#343638;border-radius:8px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:9px}
  .view-btn span{font-size:20px;line-height:1}
  .pagination{gap:8px;margin-top:20px}
  .page-btn{width:44px;height:44px;font-size:14px}
  .page-btn.active{background:#e1e2e4;color:#202123}
  .matches-card .detail-actions{margin-top:16px;padding-top:16px;border-top:1px solid #ffffff12}
  .matches-card .detail-actions .btn{min-height:46px;font-size:14px}
}
