
:root{
  --sky1:#c9ecff;
  --sky2:#8fd4f6;
  --nav:#174d80;
  --nav2:#123f6b;
  --gold:#b78b28;
  --gold2:#d8b64b;
  --ink:#17385f;
  --text:#314a63;
  --line:#c9d9e7;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--text);
  background:#fff;
}
a{text-decoration:none;color:inherit}
.wrap{max-width:1180px;margin:auto;padding:0 24px}

/* CABEÇALHO */
.sky{
  background:linear-gradient(135deg,var(--sky1) 0%,#afe2fb 48%,var(--sky2) 100%);
  border-bottom:1px solid rgba(255,255,255,.55);
}
.brand-row{
  min-height:158px;
  display:flex;
  align-items:center;
  gap:18px;
}
.brand-logo{
  width:162px;
  height:138px;
  object-fit:contain;
  flex:0 0 auto;
}
.brand-copy{min-width:0}
.brand-copy h1{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:52px;
  line-height:1;
  color:#123d6f;
  letter-spacing:-1px;
}
.brand-copy p{
  margin:9px 0 0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:21px;
  color:#17385f;
}
.motto{
  margin-left:auto;
  padding-right:20px;
  font-family:Georgia,"Times New Roman",serif;
  font-style:italic;
  font-size:22px;
  line-height:1.2;
  color:#17385f;
  text-align:center;
}
.main-nav{
  background:linear-gradient(180deg,var(--nav),var(--nav2));
  color:white;
  box-shadow:0 2px 6px #0002;
}
.nav-inner{
  display:flex;
  align-items:center;
  gap:0;
  min-height:56px;
}
.nav-inner a{
  padding:18px 25px;
  font-size:17px;
  font-weight:600;
  transition:.2s;
}
.nav-inner a:hover{
  background:#2377b7;
}

/* CONTEÚDO */
.hero{
  background:linear-gradient(90deg,#fffdf8 0%,#fff 75%);
  border-bottom:1px solid #eceff2;
}
.hero .wrap{padding-top:30px;padding-bottom:30px}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#946d17;
  font-size:15px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.eyebrow:before{
  content:"";
  width:42px;
  height:4px;
  background:var(--gold2);
}
.hero h2{
  margin:7px 0 8px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:38px;
  color:#17385f;
}
.hero p{
  max-width:820px;
  margin:0;
  font-size:17px;
  line-height:1.55;
}
.section{padding:24px 0}
.section h2{
  margin:0 0 15px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:30px;
  color:#17385f;
  display:flex;
  align-items:center;
  gap:12px;
}
.section h2 .icon{
  color:#9b7726;
  font-size:27px;
}
.card,.empty{
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  padding:17px 19px;
  box-shadow:0 1px 3px #00000008;
}
.grid{display:grid;gap:14px}
.card h3{
  margin:0 0 4px;
  font-family:Georgia,"Times New Roman",serif;
  color:#17385f;
}
.muted{color:#6e8191}
.notice-grid,.meeting-grid{display:grid;gap:14px}
.badge{
  display:inline-block;
  margin-bottom:8px;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:#fff4cf;
  color:#7a5a12;
  border:1px solid #e8d18a;
}
.site-footer{
  margin-top:25px;
  background:linear-gradient(180deg,#173f6b,#13365d);
  color:white;
  text-align:center;
  padding:27px 0;
  font-size:13px;
}
.table{
  width:100%;
  border-collapse:collapse;
  background:white;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
}
.table th,.table td{
  padding:11px 12px;
  border-bottom:1px solid #e6eef5;
  text-align:left;
}
.table th{
  background:#eef7fd;
  color:#17385f;
}
.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:8px;
  background:var(--nav);
  color:white;
  border:0;
}
.form input,.form textarea,.form select{
  width:100%;
  padding:10px;
  border:1px solid #b8cddd;
  border-radius:8px;
}

@media(max-width:900px){
  .brand-row{min-height:145px}
  .brand-logo{width:132px;height:118px}
  .brand-copy h1{font-size:42px}
  .brand-copy p{font-size:18px}
  .motto{font-size:18px;padding-right:0}
}
@media(max-width:700px){
  .brand-row{
    min-height:auto;
    padding-top:12px;
    padding-bottom:12px;
    gap:12px;
  }
  .brand-logo{width:95px;height:90px}
  .brand-copy h1{font-size:30px}
  .brand-copy p{font-size:13px}
  .motto{display:none}
  .nav-inner{overflow-x:auto;white-space:nowrap}
  .nav-inner a{padding:15px 14px;font-size:15px}
  .hero h2{font-size:29px}
  .hero p{font-size:16px}
  .section h2{font-size:25px}
}


/* PÁGINA A TURMA */
.turma-title h2{
  margin:6px 0 0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:36px;
  color:var(--ink);
}
.member-search{
  margin:20px 0 14px;
  padding:18px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:24px;
  align-items:end;
  background:#f7fbff;
  border:1px solid var(--line);
  border-radius:10px;
}
.search-field label,.sort-box legend{
  display:block;
  margin-bottom:7px;
  font-weight:700;
  color:var(--ink);
}
.search-row{display:flex;gap:9px}
.search-row input{
  flex:1;
  min-width:0;
  padding:11px 12px;
  border:1px solid #aebfce;
  border-radius:8px;
  font-size:16px;
}
.search-help{margin-top:6px;font-size:12px;color:#718293}
.sort-box{
  margin:0;
  padding:0;
  border:0;
  white-space:nowrap;
}
.sort-box label{margin-right:13px;cursor:pointer}
.result-bar{
  display:flex;
  gap:5px;
  align-items:center;
  margin:12px 0 16px;
  font-size:14px;
  color:#607487;
}
.result-bar a{
  margin-left:auto;
  color:#155b95;
  font-weight:700;
}
.member-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.member-card{
  overflow:hidden;
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  min-height:180px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 2px 8px #12385f0d;
}
.member-card.is-memoriam{border-left:4px solid #a88b54}
.member-photos{
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#edf5fa;
  border-right:1px solid var(--line);
}
.photo-slot{
  position:relative;
  min-width:0;
  border-right:1px solid #d7e2ea;
}
.photo-slot:last-child{border-right:0}
.photo-slot img{
  width:100%;
  height:148px;
  display:block;
  object-fit:cover;
}
.photo-placeholder{
  height:148px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  color:#6f8292;
  background:linear-gradient(145deg,#eef5f9,#dfeaf1);
}
.photo-placeholder span{
  font-family:Georgia,"Times New Roman",serif;
  font-size:20px;
  color:#536e84;
}
.photo-placeholder small{margin-top:4px;font-size:10px}
.photo-label{
  padding:6px 4px;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-size:10px;
  font-weight:700;
  color:#5d7285;
}
.member-info{padding:17px 16px}
.member-topline{
  min-height:25px;
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:4px;
}
.member-number{
  display:inline-block;
  padding:4px 8px;
  border-radius:5px;
  background:#e8f3fb;
  color:#174f7f;
  font-size:13px;
  font-weight:800;
  letter-spacing:.04em;
}
.member-topline .badge{margin:0}
.member-info h3{
  margin:5px 0 3px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:24px;
  color:var(--ink);
}
.member-fullname{font-size:14px;line-height:1.35}
.member-detail{
  margin-top:8px;
  font-size:13px;
  color:#6b7d8d;
}
@media(max-width:950px){
  .member-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .member-search{grid-template-columns:1fr;gap:15px}
  .search-row{flex-direction:column}
  .sort-box label{display:block;margin:8px 0}
  .member-card{grid-template-columns:150px minmax(0,1fr)}
  .photo-slot img,.photo-placeholder{height:126px}
  .member-info h3{font-size:21px}
}
@media(max-width:480px){
  .member-card{grid-template-columns:1fr}
  .member-photos{border-right:0;border-bottom:1px solid var(--line)}
  .photo-slot img,.photo-placeholder{height:155px}
}


/* PAINEL ADMINISTRATIVO */
.adminbar{background:#0f3154;color:#fff;padding:11px 0;font-size:14px}
.adminbar a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.flash{padding:12px 14px;border-radius:8px;background:#e8f7ed;border:1px solid #9bd0aa;margin:15px 0;color:#205b31}
.flash.error{background:#fff0f0;border-color:#e0a4a4;color:#8a2727}
.form{max-width:820px}
.form label{display:block;font-weight:700;margin:14px 0 6px;color:#17385f}
.form textarea{min-height:120px}
.check-line{display:flex!important;align-items:center;gap:8px}
.check-line input{width:auto!important}
.admin-search{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:end;
  padding:16px;border:1px solid var(--line);border-radius:9px;background:#f7fbff
}
.admin-search label{display:block;font-weight:700;margin-bottom:6px;color:#17385f}
.admin-search-row{display:flex;gap:8px}
.admin-search-row input{flex:1;padding:10px;border:1px solid #b8cddd;border-radius:8px;font-size:15px}
.admin-order{white-space:nowrap}
.admin-order strong{display:block;margin-bottom:7px;color:#17385f}
.admin-order label{margin-right:10px}
.photo-status{display:inline-block;padding:3px 7px;border-radius:999px;background:#eef1f4;color:#8a98a4;font-size:11px}
.photo-status.ok{background:#e6f6eb;color:#28623a}
.admin-edit-head{display:flex;align-items:center;justify-content:space-between;gap:20px}
.admin-edit-head h2{margin-bottom:4px}
.admin-member-id{color:#5f7487;margin-bottom:18px}
.admin-photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:10px 0 4px}
.admin-photo-box{padding:14px;border:1px solid var(--line);border-radius:10px;background:#f8fbfd}
.admin-photo-box h3{margin:0 0 10px;color:#17385f;font-family:Georgia,"Times New Roman",serif}
.admin-photo-box img,.admin-photo-empty{
  width:100%;height:260px;object-fit:contain;background:#edf3f7;border:1px solid #d6e1e9;border-radius:8px
}
.admin-photo-empty{display:flex;align-items:center;justify-content:center;color:#7c8c98}
.admin-photo-box input[type=file]{background:#fff}
@media(max-width:700px){
  .admin-search{grid-template-columns:1fr}
  .admin-search-row{flex-direction:column}
  .admin-order label{display:block;margin:7px 0}
  .admin-photo-grid{grid-template-columns:1fr}
  .admin-edit-head{align-items:flex-start;flex-direction:column}
}

/* V7 — ÍNDICE E FICHA INDIVIDUAL */
.member-index{display:grid;gap:8px;margin-top:16px}
.member-index-row{display:grid;grid-template-columns:105px minmax(0,1fr) auto 90px;gap:15px;align-items:center;padding:12px 15px;border:1px solid var(--line);border-radius:8px;background:#fff}
.member-index-row.is-memoriam{border-left:4px solid #a88b54}
.member-index-number{font-weight:800;color:#174f7f}
.member-index-war{font-family:Georgia,"Times New Roman",serif;font-size:20px;font-weight:700;color:var(--ink)}
.member-index-name{font-size:13px;color:#6b7d8d;margin-top:2px}
.member-open{font-size:13px;font-weight:700;color:#155b95;text-align:right}
.profile-back{margin-bottom:16px;color:#155b95;font-weight:700}
.profile-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:16px}
.profile-number{font-size:15px;font-weight:800;color:#174f7f;letter-spacing:.05em}
.profile-head h2{margin:4px 0;font-family:Georgia,"Times New Roman",serif;font-size:38px;color:var(--ink)}
.profile-head p{margin:0;color:#65798b}
.profile-mem{font-size:13px}
.profile-photos{display:grid;grid-template-columns:repeat(2,378px);justify-content:center;gap:42px;margin:30px 0}
.profile-photos figure{margin:0;text-align:center}
.profile-photo{width:378px;height:378px;border:1px solid #cad8e3;background:#fff;box-shadow:0 3px 12px #17385f14}
.profile-photo img{width:100%;height:100%;object-fit:contain;display:block}
.profile-photo-empty{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#f1f5f8;color:#7c8c98}
.profile-photos figcaption{margin-top:9px;font-weight:700;color:#17385f}
.profile-data{max-width:820px;margin:0 auto;padding:20px;border:1px solid var(--line);border-radius:10px;background:#f9fcfe}
.profile-data h3{margin:0 0 12px;font-family:Georgia,"Times New Roman",serif;color:var(--ink)}
.profile-data dl{margin:0}
.profile-data dl div{display:grid;grid-template-columns:160px 1fr;padding:8px 0;border-bottom:1px solid #e4edf3}
.profile-data dl div:last-child{border-bottom:0}
.profile-data dt{font-weight:700;color:#17385f}
.profile-data dd{margin:0}
@media(max-width:900px){.profile-photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.profile-photo{width:100%;height:auto;aspect-ratio:1/1}}
@media(max-width:700px){.member-index-row{grid-template-columns:85px 1fr auto}.member-open{display:none}.member-index-name{display:none}.profile-photos{grid-template-columns:1fr;max-width:378px;margin-left:auto;margin-right:auto}.profile-data dl div{grid-template-columns:1fr;gap:3px}}
