:root{
  --bg:#ffffff;
  --card:#ffffff;
  --text:#000000;
  --muted:#2b2b2b;
  --border:#e6e6e6;

  --brand:#f3971a;     /* naranja */
  --brand-2:#c77910;   /* naranja oscuro */
  --max:1200px;
  --radius:14px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: "Futura LT Light","Futura LT","Futura","Helvetica Neue",Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

a{color:var(--text);text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:var(--max);margin:0 auto;padding:0 18px}

/* Header */
.topbar{
  position:relative;
  padding:20px 0 18px;
  background:#fff;
  color:#fff;
}
.topbar::before{
  content:"";
  position:absolute;
  left:0;right:0;
  top:65px;
  height:42px;
  background:#000;
  border-bottom:4px solid var(--brand);
  z-index:1;
}
.topbar .container{position:relative;padding:0 18px;}
.topbar-actions{
  position:absolute;
  right:14px;
  top:65px;
  transform:translateY(-50%);
  display:flex;
  gap:10px;
  align-items:center;
  z-index:6;
}
.icon-btn{
  background:transparent;
  border:none;
  color:var(--brand);
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:4px;
  line-height:1;
}
.icon-btn svg{
  width:22px;
  height:22px;
  stroke:currentColor;
  stroke-width:2;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.burger-btn span{
  display:block;
  width:22px;
  height:2px;
  background:currentColor;
  border-radius:2px;
}
.burger-btn span + span{margin-top:0;}

.topbar-rail{
  background:transparent;
  color:#fff;
  display:flex;
  align-items:center;
  gap:28px;
  padding:0px 14px 6px 12px;
  min-height:64px;
  position:relative;
  overflow:visible;
  z-index:2;
}
.brand{
  position:relative;
  display:flex;
  align-items:flex-end;
  gap:12px;
}
.brand-badge{
  position:relative;
  width:auto;
  height:auto;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  transform:translateY(-8px);
  margin-bottom:-8px;
  box-shadow:none;
}
.brand-badge img{
  width:auto;
  height:140px;
  object-fit:contain;
  display:none;
}
.brand-badge .brand-fallback{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:"Futura LT","Futura","Helvetica Neue",Arial,sans-serif;
  font-weight:900;
  font-size:42px;
  letter-spacing:-1px;
  color:#000;
}
.brand-badge.has-logo img{display:block;}
.brand-badge.has-logo .brand-fallback{opacity:0;visibility:hidden;}
.brand-link{color:inherit;text-decoration:none;display:flex;align-items:flex-end;gap:12px;}
.brand-caption{
  position:absolute;
  bottom:-30px;
  left:4px;
  font-size:14px;
  font-weight:800;
  color:#000;
  text-transform:none;
}
.brand-caption span{display:block;line-height:1.1;}
.brand-caption .brand-subtitle{
  font-size:12px;
  font-weight:700;
  color:#4b4b4b;
  text-transform:none;
  letter-spacing:0;
  margin-top:2px;
  max-width:240px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.nav{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:30px;
  font-size:15px;
  letter-spacing:0.4px;
  text-transform:uppercase;
  font-weight:900;
}
.nav a{
  color:#fff;
  padding:20px 0;
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
  line-height:1.1;
}
.nav a:hover,
.nav a:focus-visible{text-decoration:none;}
.nav a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-4px;
  height:3px;
  background:var(--brand);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform 160ms ease;
}
.nav a:hover::after,
.nav a:focus-visible::after{
  transform:scaleX(1);
}
.nav .pill{
  background:none;
  color:#fff;
  padding:22px 0;
}
.nav .nav-item{
  position:relative;
  display:flex;
  flex-direction:column;
}
.nav .nav-item > a{padding-right:18px;}
.subnav{
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  background:#111;
  border:1px solid #1f1f1f;
  box-shadow:0 6px 18px rgba(0,0,0,.24);
  display:none;
  flex-direction:column;
  z-index:8;
}
.nav .nav-item:hover .subnav,
.nav .nav-item:focus-within .subnav{
  display:flex;
}
.subnav a{
  padding:10px 14px;
  color:#fff;
  font-size:13px;
  text-transform:none;
}
.subnav a::after{display:none;}
.subnav a:hover{background:#1c1c1c;text-decoration:none;}

@media (max-width: 980px){
  .topbar{padding-bottom:28px;}
  .topbar-rail{
    gap:16px;
    padding-right:18px;
    justify-content:space-between;
  }
  .nav{display:none;}
  .brand-badge{width:92px;height:120px;transform:translateY(-28px);}
  .brand-badge::before{height:140px;}
  .brand-caption{
    position:static;
    margin-top:-6px;
  }
  .nav{gap:20px;font-size:14px;}
}
@media (max-width: 640px){
  .topbar{padding-bottom:18px;}
  .topbar::before{top:58px;height:38px;}
  .topbar-actions{top:58px;right:8px;}
  .topbar-rail{
    flex-wrap:nowrap;
    gap:12px;
    padding:6px 12px 0 12px;
  }
  .brand{
    align-items:center;
    margin-top:10px;
  }
  .brand-badge{
    width:auto;
    height:auto;
    transform:translateY(6px);
  }
  .brand-badge img{height:96px;}
  .brand-badge .brand-fallback{font-size:32px;}
  .brand-badge::before{height:124px;}
  .brand-caption{
    position:static;
    margin-top:-8px;
    font-size:13px;
  }
  .brand-caption .brand-subtitle{display:none;}
  .nav{gap:14px;font-size:13px;}
}

/* Page head */
.pagehead{
  background:#fff;
  border-bottom:1px solid var(--border);
}
.pagehead .inner{padding:18px 0}
.breadcrumb{
  font-size:12px;color:#444;
  display:flex;gap:8px;flex-wrap:wrap;
}
.h1{margin:10px 0 0;font-size:28px;letter-spacing:-.2px}

/* Layout */
.main{padding:22px 0 50px}
.grid{display:grid;grid-template-columns: 320px 1fr;gap:18px}
@media (max-width: 980px){.grid{grid-template-columns:1fr}}

/* Sidebar */
.sidebar{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
.sidebar .head{
  padding:14px 14px 10px;
  border-bottom:1px solid var(--border);
  font-weight:900;
}
.sidebar .menu{padding:8px;display:flex;flex-direction:column;gap:6px}
.sidebar .menu a{
  padding:10px 10px;border-radius:12px;color:var(--text);
  border:1px solid transparent;
}
.sidebar .menu a:hover{background:#fff7ec;border-color:#ffe1b8;text-decoration:none}
.sidebar .menu a.active{background:#fff0db;border-color:#ffd6a2}
.sidebar .submenu{
  padding-left:10px;
  display:flex;flex-direction:column;gap:4px;
}
.sidebar .submenu a{
  padding:8px 10px 8px 16px;
  font-size:13px;
}

.tag-checkboxes{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  padding:10px 12px;
  border:1px dashed #ffd6a2;
  border-radius:10px;
  background:#fffdf7;
}
.tag-checkboxes label{
  display:flex;
  align-items:center;
  gap:6px;
  margin:0;
  font-weight:800;
}

/* Content */
.panel{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
.panel .pad{padding:18px}
.panel h2{margin:0 0 10px;font-size:20px}
.panel h3{margin:22px 0 10px;font-size:16px}
.h1,
.panel h2,
.panel h3,
.post-card .post-title,
.publication-title,
.person .name,
.member-profile .member-name{
  font-family:"Futura LT Light","Futura LT","Futura","Helvetica Neue",Arial,sans-serif;
  font-weight:400;
}
.panel p{margin:0 0 12px;color:var(--text);text-align:justify}
.content{
  text-align:justify;
  text-justify:inter-word;
}
.muted{color:#444;font-size:13px}
.heroimg{
  width:100%;
  max-width:720px;
  height:360px;
  object-fit:cover;
  display:block;
  margin:0 auto 12px;
  border-radius:14px;
  border:1px solid var(--border);
}
.newtab-linkable{cursor:pointer}
.heroimg.newtab-linkable:hover{opacity:.92}
.h1.newtab-linkable:hover{text-decoration:underline}
@media (max-width: 680px){
  .heroimg{height:220px;}
}

/* Hero / Gallery */
.hero{
  border-bottom:1px solid var(--border);
  background:#000;
  position:relative;
}
.hero img{
  width:100%;
  height:280px;
  object-fit:cover;
  display:block;
  opacity:.85;
}
.hero .overlay{
  position:absolute;inset:0;
  display:flex;align-items:flex-end;
  padding:18px;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75));
  color:#fff;
}
.hero .overlay .box{
  max-width: 820px;
}
.hero .overlay .box .kicker{
  display:block;
  background:none;
  color:var(--brand);
  padding:0;
  border-radius:0;
  margin-bottom:6px;
  font-weight:900;
  font-size:clamp(28px, 4vw, 48px);
  text-transform:uppercase;
  letter-spacing:1.6px;
  line-height:1.05;
}
.hero .overlay .pill{
  display:block;
  background:none;
  color:var(--brand);
  padding:0;
  border-radius:0;
  margin-bottom:6px;
  font-weight:900;
  font-size:clamp(28px, 4vw, 48px);
  text-transform:uppercase;
  letter-spacing:1.6px;
  line-height:1.05;
}
.hero .overlay h1{
  margin:10px 0 6px;
  font-size:28px;
  letter-spacing:0.02em;
}
.hero .overlay h1.hero-title-animate{
  animation: hero-title-in 1800ms ease-out 240ms both;
  will-change: transform, opacity, letter-spacing, filter;
}
.hero .overlay p{margin:0;color:#fff;opacity:.95}

@keyframes hero-title-in{
  from{
    opacity:0;
    transform:translateY(6px);
    letter-spacing:0.22em;
    filter:blur(4px);
  }
  to{
    opacity:1;
    transform:translateY(0);
    letter-spacing:0.02em;
    filter:blur(0);
  }
}

@media (prefers-reduced-motion: reduce){
  .hero .overlay h1.hero-title-animate{animation:none;}
}

.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
  margin-top:14px;
}
@media (max-width: 980px){.gallery{grid-template-columns:repeat(2,1fr)}}
.gallery img{
  width:100%;
  height:120px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--border);
}

/* Posts cards */
.post-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.post-card{
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  padding:12px;
  box-shadow:0 1px 8px rgba(0,0,0,.05);
  cursor:pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.post-card:hover{
  background: var(--brand);
  border-color:#ffc168;
  text-decoration:none;
  box-shadow:0 4px 16px rgba(0,0,0,.12);
}
.post-card .post-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.post-card .post-title{
  margin:0;
  font-size:16px;
}
.post-card .chevron{
  font-size:18px;
  color:#555;
  transition:transform 160ms ease;
}
.post-card.expanded .chevron{transform:rotate(90deg)}
.post-card .post-body{
  display:none;
  padding-top:10px;
  gap:12px;
  align-items:flex-start;
}
.post-card.no-cover .post-body{grid-template-columns:1fr}
.post-card.expanded{
  background:#fff7ec;
  border-color:#ffd6a2;
}
.post-card.expanded .post-body{
  display:grid;
  grid-template-columns: 140px 1fr;
}
.post-card.no-cover.expanded .post-body{grid-template-columns:1fr}
@media (max-width: 680px){
  .post-card.expanded .post-body{grid-template-columns:1fr}
}
.post-card .post-cover{
  width:100%;
  max-width:180px;
  height:120px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--border);
}
.post-card .post-summary{
  margin:0;
  color:#111;
  font-size:16px;
  text-align:justify;
  text-justify:inter-word;
}
.post-card .post-meta{
  font-size:12px;
  color:#444;
  margin-top:6px;
}
.post-card .taglist{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}
.post-card .tag{
  padding:4px 8px;
  background:#fff;
  border:1px solid #ffd6a2;
  border-radius:10px;
  font-size:12px;
}
.post-card .post-actions{
  margin-top:10px;
  display:flex;
  gap:8px;
}

/* Publicaciones layout */
.post-list{gap:14px;}
.publication-card{
  display:grid;
  grid-template-columns: 1.25fr 2fr;
  gap:16px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:0 1px 8px rgba(0,0,0,.05);
}
@media (max-width: 760px){
  .publication-card{grid-template-columns:1fr}
}
.publication-thumb img{
  width:100%;
  height:240px;
  object-fit:cover;
  border-radius:12px;
  display:block;
}
.publication-media-link{display:block}
.publication-title{margin:0 0 6px;font-size:20px}
.publication-title-link{
  color:inherit;
  text-decoration:none;
}
.publication-title-link:hover{text-decoration:underline}
.publication-slug{font-family:monospace;font-size:13px;color:#555;margin-bottom:6px;}
.publication-meta{font-size:13px;color:#666;margin-bottom:8px;}
.publication-actions{margin-top:10px;}

.cards{display:grid;grid-template-columns: repeat(3,1fr);gap:14px}
@media (max-width: 1100px){.cards{grid-template-columns: repeat(2,1fr)}}
@media (max-width: 680px){.cards{grid-template-columns: 1fr}}

.card{
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 1px 8px rgba(0,0,0,.05);
  display:flex;flex-direction:column;
}
.card img{width:100%;height:160px;object-fit:cover;background:#f3f3f3;display:block}
.card .pad{padding:12px}
.card h3{margin:0 0 6px;font-size:16px}
.card p{margin:0 0 10px;color:#444;font-size:13px}
.card .meta{font-size:12px;color:#555}
.card .cta{margin-top:auto;padding:12px;display:flex;justify-content:flex-end}

.btn{
  border:1px solid #ffd6a2;
  background: var(--brand);
  color: var(--text);
  padding:8px 12px;
  border-radius:12px;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
}
.btn:hover{background: var(--brand-2);text-decoration:none}

/* Team grid */
.team{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top:14px;
}
@media (max-width: 980px){.team{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 680px){.team{grid-template-columns:1fr}}

.person{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  background:#000;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
  cursor:pointer;
  display:block;
  color:inherit;
  text-decoration:none;
}
.person:focus-visible{
  outline:2px solid var(--brand-2);
  outline-offset:3px;
}
.person img{
  width:100%;
  height:260px;
  object-fit:cover;
  display:block;
  transition: transform 240ms ease;
}
.person .info{
  padding:12px;
  background:#fff;
}
.person .name{
  font-weight:900;
  font-size:16px;
  margin:0 0 4px;
}
.person .role{
  color:#444;
  font-size:13px;
  margin:0 0 8px;
}
.person .bio{
  margin:0;
  font-size:13px;
  color:#111;
  text-align:justify;
  text-justify:inter-word;
}
.person .overlay{
  position:absolute;
  inset:0;
  background:rgba(243,151,26,0.55);
  color:#000;
  opacity:0;
  transition: opacity 200ms ease;
  display:block;
  padding:0;
  overflow:hidden;
  box-sizing:border-box;
}
.person .overlay .bio{
  background:rgba(255,255,255,0.95);
  position:absolute;
  inset:0;
  margin:0;
  padding:14px;
  border-radius:0;
  width:100%;
  height:100%;
  max-height:100%;
  min-height:0;
  box-shadow:none;
  max-width:100%;
  overflow:hidden;
  box-sizing:border-box;
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:3;
  line-clamp:3;
  -webkit-box-orient:vertical;
  overflow-wrap:anywhere;
  word-break:break-word;
  text-align:justify;
  text-justify:inter-word;
}
.person:hover img{transform:scale(1.03);}
.person:hover .overlay{opacity:1;}

/* Miembro detalle */
.member-detail{
  margin-top:18px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  padding:14px;
}
.member-detail .header{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  align-items:center;
}
.member-detail .links,
.member-detail .articles{
  margin-top:12px;
}
.member-detail ul{
  margin:8px 0 0;
  padding-left:18px;
}
.member-detail a{color:var(--brand-2);}
.member-detail a:hover{text-decoration:underline;}

/* Perfil de miembro */
.member-profile{
  display:grid;
  grid-template-columns:minmax(220px, 320px) 1fr;
  gap:24px;
  align-items:start;
}
.member-profile .member-photo img{
  width:100%;
  height:320px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid var(--border);
  background:#f3f3f3;
  display:block;
}
.member-profile .member-name{
  margin:8px 0 6px;
  font-size:24px;
  font-weight:900;
}
.member-profile .member-role{
  font-weight:700;
  color:#333;
  margin-bottom:12px;
}
.member-profile .member-bio{
  color:#222;
  line-height:1.6;
  text-align:justify;
  text-justify:inter-word;
}
.member-profile .member-links{
  margin-top:16px;
}
.member-profile .member-links ul{
  margin:8px 0 0;
  padding-left:18px;
}
.member-profile .member-links a{color:var(--brand-2);}
.member-profile .member-links a:hover{text-decoration:underline;}
@media (max-width: 860px){
  .member-profile{grid-template-columns:1fr;}
  .member-profile .member-photo img{height:260px;}
}

/* Admin links list */
.links-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:8px 0;
}
.link-row{
  display:grid;
  grid-template-columns: 1fr 1fr auto;
  gap:8px;
  align-items:end;
}
.link-row input{
  width:100%;
}
.link-row button{
  height:38px;
}
@media (max-width:700px){
  .link-row{grid-template-columns:1fr;}
  .link-row button{width:100%;}
}

.pager{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
}
.pager .btn{
  padding:6px 10px;
  font-size:12px;
}
.pager .btn.active{
  background:var(--brand-2);
}
.pager .btn[disabled]{
  opacity:0.5;
  cursor:not-allowed;
}

.photo-preview{
  margin-top:8px;
  display:flex;
  align-items:center;
  gap:10px;
}
.photo-preview img{
  width:120px;
  height:120px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--border);
  background:#f6f6f6;
}

/* Footer */
.footer{
  margin-top:40px;
  padding:56px 0 0;
  background:
    linear-gradient(
      to bottom,
      var(--brand) 0 6px,
      #000 6px 34px,
      #fff 34px 100%
    );
  color:#000;
}
.footer .footer-content{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,320px);
  column-gap:24px;
  row-gap:18px;
  align-items:start;
}
.footer-contact{
  grid-column:1;
  width:100%;
  font-size:14px;
  line-height:1.6;
}
.footer-project-title{
  text-transform:uppercase;
  font-weight:800;
}
.footer-logos{
  grid-column:1;
  width:100%;
  display:flex;
  flex-wrap:wrap;
  gap:18px 52px;
  align-items:center;
}
.footer-funding{
  grid-column:2;
  grid-row:1 / span 2;
  justify-self:end;
  width:100%;
  max-width:320px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.footer-funding img{
  width:100%;
  height:auto;
  object-fit:contain;
  display:block;
}
.footer-funding p{
  margin:0;
  font-size:13px;
  line-height:1.45;
  color:#111;
}
.footer-logos a,
.footer-logos span{
  width:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:200px;
  min-height:52px;
}
.footer-logos a:not(:first-child),
.footer-logos span:not(:first-child){
  position:relative;
  padding-left:20px;
}
.footer-logos a:not(:first-child)::before,
.footer-logos span:not(:first-child)::before{
  content:"";
  position:absolute;
  left:-20px;
  top:50%;
  width:1px;
  height:46px;
  background:var(--brand);
  transform:translateY(-50%);
}
.footer-copy{
  grid-column:1 / -1;
  width:100%;
  margin-top:6px;
  background:#2b2b2b;
  color:#f4f4f4;
  padding:10px 14px;
  font-size:12px;
  letter-spacing:.2px;
  text-align:center;
  position:relative;
  left:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  width:100vw;
}
.footer-logos img{
  width:auto;
  height:auto;
  max-width:100%;
  max-height:52px;
  object-fit:contain;
  display:block;
  background:transparent;
  padding:0;
  border-radius:0;
  border:0;
}
.footer a{color:var(--brand);}
.footer a:hover{text-decoration:underline;}
@media (max-width: 900px){
  .footer .footer-content{grid-template-columns:1fr;}
  .footer-funding{
    grid-column:1;
    grid-row:auto;
    justify-self:start;
    max-width:300px;
  }
}

.project-title{
  text-transform:uppercase;
  font-weight:800;
  color:var(--brand);
}

/* Admin */
.form{display:grid;gap:12px}
.form > div:not(.row2),
.form .row2 > div{
  background:#fffaf2;
  border:1px solid #ffe1b8;
  border-radius:12px;
  padding:10px 12px;
  box-shadow:0 2px 6px rgba(0,0,0,.05);
}
label{
  font-size:13px;
  color:#2b2b2b;
  font-weight:800;
  letter-spacing:-.1px;
  display:block;
  margin-bottom:6px;
}
input:not([type="checkbox"]):not([type="radio"]), textarea, select{
  width:100%;
  padding:10px 12px;
  border:1px solid #d9c4a4;
  border-radius:10px;
  outline:none;
  background:#fff;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus, select:focus{
  border-color: var(--brand);
  box-shadow:0 0 0 3px rgba(243,151,26,0.25);
  background:#fffdf7;
}
input::placeholder, textarea::placeholder{color:#8a7a5f;}
input[type="checkbox"]{
  width:auto;
  accent-color: var(--brand);
  transform: scale(1.05);
}
textarea{min-height:160px;resize:vertical}
.rte-wrapper{display:flex;flex-direction:column;gap:6px}
.rte-toolbar{display:flex;flex-wrap:wrap;gap:6px}
.rte-btn{
  border:1px solid var(--border);
  background:#fff7ec;
  color:#111;
  padding:6px 10px;
  border-radius:10px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.rte-btn:hover{background:var(--brand);border-color:#ffc168}
.rte-editor{
  min-height:160px;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
  outline:none;
  line-height:1.5;
}
.rte-editor:focus{box-shadow:0 0 0 2px #ffd6a2;}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width: 680px){.row2{grid-template-columns:1fr}}

.notice{
  padding:12px;border-radius:12px;border:1px solid var(--border);
  background:#fff7ec;color:#111;font-size:13px;
}
.error{
  padding:12px;border-radius:12px;border:1px solid #ffd0d0;
  background:#fff3f3;color:#8a1f1f;
}
.success{
  padding:12px;border-radius:12px;border:1px solid #c9f0d7;
  background:#f2fff6;color:#166534;
}
.small{font-size:12px;color:#444}
hr{border:none;border-top:1px solid var(--border);margin:16px 0}

.hero{
  border-bottom:1px solid var(--border);
  background:#000;
  position:relative;
  min-height: 320px;
}

.hero .bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:.9;
  transition: opacity 700ms ease;
}

.hero .shade{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 40%, rgba(0,0,0,.75));
}

.hero .overlay{
  position:relative;
  display:flex;
  align-items:flex-end;
  min-height: 320px;
  padding:18px;
  color:#fff;
}

.hero .overlay .box{max-width: 860px;}

/* Burger / off-canvas menu */
.burger-btn{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:4px;
  border:none;
  background:transparent;
  color:var(--brand);
}
.burger-btn:hover{color: var(--brand-2);}
.sidebar-overlay{display:none;}

body.offcanvas-nav .grid{grid-template-columns:1fr;}
body.offcanvas-nav .sidebar{
  position:fixed;
  top:0;left:-300px;
  width:280px;
  height:100vh;
  z-index:1000;
  border-radius:0 16px 16px 0;
  box-shadow:0 10px 30px rgba(0,0,0,.2);
  transition:left 200ms ease;
}
body.sidebar-open .sidebar{left:0;}

body.offcanvas-nav .sidebar-overlay{
  display:block;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  opacity:0;
  pointer-events:none;
  transition:opacity 200ms ease;
  z-index:900;
}
body.offcanvas-nav.sidebar-open .sidebar-overlay{
  opacity:1;
  pointer-events:all;
}

/* Admin sections toggle */
.admin-section{display:none;}
.admin-section.active{display:block;}
