/* Kunena Aurelia / Bootstrap 5, adapted without changing vendor files. */
.forum-era-nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 20px;padding:6px 14px;margin:0 0 14px;border:1px solid #b4a17a;border-radius:5px;background:rgba(255,249,232,.55);color:#000070;font:13px/1.5 Verdana,sans-serif}
.forum-era-nav a{display:inline-flex;align-items:center;min-height:44px;color:#000070}
.site .content-sheet{grid-template-columns:minmax(0,1fr)}.site .right-sidebar{display:none}
#kunena.layout{display:block;max-width:100%;min-width:0;padding:0;margin:0;background:transparent;border:0;gap:0;color:#27251f;font:14px/1.55 Verdana,Arial,sans-serif}
#kunena{--es-forum-surface:rgba(255,249,232,.55);--bs-body-color:#27251f;--bs-body-bg:transparent;--bs-primary:#000070;--bs-link-color:#000070;--bs-link-hover-color:#3939a1;--bs-border-color:#b9aa87}
#kunena a{color:#000070}#kunena a:hover{color:#343498;text-decoration:underline}
#kunena>.navbar{display:flex;padding:9px 12px;background:#000070 url('../assets/background7.jpg') repeat!important;border:1px solid #000070!important;border-radius:5px!important;box-shadow:none!important;margin-bottom:12px}
#kunena .navbar-nav{gap:6px}#kunena .navbar-nav .nav-link{padding:8px 12px;color:#ffe34c;font-size:13px;border-radius:3px}
#kunena .navbar-nav .nav-link:hover,#kunena .navbar-nav .active>.nav-link{background:#eddfb8;color:#000070;text-decoration:none}
#kunena .navbar-toggler{background:#eddfb8;padding:5px 8px}#kunena .offcanvas{background:#000070;color:#ffe34c}#kunena .offcanvas-title{color:#ffe34c}
#kunena .offcanvas .btn-close{background-color:#fff}#kunena .dropdown-menu{min-width:280px;background:#f7eed9;color:#27251f;padding:16px}
#kunena .breadcrumb{display:flex;gap:8px;margin:0;padding:0;background:transparent;color:#51432e;border:0;border-radius:0;font:12px/1.5 Verdana,Arial,sans-serif}
#kunena .pagination-container-links{padding-top:5px!important;margin:10px 0}#kunena #jumpto{margin:12px 0}
#kunena .kfrontend{margin:14px 0 18px;background:var(--es-forum-surface);border:1px solid #000070!important;border-radius:4px!important;box-shadow:none!important;overflow:hidden}
#kunena .card-header{padding:10px 14px;margin:0;background:#000070 url('../assets/background7.jpg') repeat;color:#ffe34c;border-bottom:1px solid #000070;font:700 19px/1.4 Georgia,serif}
#kunena .card-header a{color:#ffe34c}#kunena .card-header .badge{margin-left:12px;background:#e2d6b9!important;color:#202034;font:11px/1.4 Verdana,sans-serif}
#kunena .kfrontend .shadow-lg{box-shadow:none!important}#kunena .table{margin:0;--bs-table-color:#27251f;--bs-table-bg:transparent;--bs-table-border-color:#d2ccc0;--bs-table-striped-bg:rgba(194,167,102,.12);--bs-table-striped-color:#27251f;--bs-table-hover-bg:rgba(255,250,235,.35);--bs-table-hover-color:#27251f}
#kunena .table>:not(caption)>*>*{padding:14px 12px;vertical-align:middle}#kunena .table thead{font-size:12px;font-weight:700}
#kunena .table thead td,#kunena .table thead th{background:rgba(194,167,102,.18);color:#000070}#kunena .table tfoot td{background:rgba(194,167,102,.18)}
#kunena .table h3{margin:0 0 6px;font:700 17px/1.4 Verdana,sans-serif}#kunena .table h3 a{text-decoration:none}#kunena .table h3 a:hover{text-decoration:underline}
#kunena .table .badge{background:#e2d6b9!important;color:#393a45;font:10px/1.4 Verdana,sans-serif;margin:0 8px}
#kunena .table h3 small{margin-left:10px;font:11px/1.4 Verdana,sans-serif;color:#66583f}#kunena .card-header small{margin-left:8px;font:12px/1.5 Verdana,sans-serif}
#kunena .table td div{font-size:12px;line-height:1.55}#kunena .table .category-desc{margin-top:5px}
#kunena .form-control,#kunena .form-select{background-color:#fffaf0;color:#27251f;border:1px solid #998258;font:14px/1.5 Verdana,sans-serif;padding:8px 10px}
#kunena .btn{font:13px/1.45 Verdana,sans-serif;padding:8px 13px;border-radius:4px}#kunena .btn-light,#kunena .btn-secondary{background:#eddfb8;border-color:#a08b54;color:#000070}
#kunena .btn-primary{background:#000070;border-color:#000070;color:#fff0bc}#kunena .btn-primary:hover{background:#242482}
#kunena .card{background:var(--es-forum-surface);color:#27251f;border-color:#aaa38f}#kunena .card-body{padding:18px;overflow-wrap:anywhere}
#kunena .kmsg{font:16px/1.8 Georgia,serif;color:#27251f}#kunena .alert{padding:14px 17px;margin:14px 0;color:#323126}
#kunena.layout .row.message{--bs-gutter-x:0;margin:18px 0;border:1px solid #ac9669;border-radius:5px;background:var(--es-forum-surface);overflow:hidden}
#kunena.layout .message>.col-md-2{padding:18px 12px;background:rgba(218,194,139,.28);border-right:1px solid #c4b28b}
#kunena.layout .message>.col-md-10{padding:0;background:transparent;box-shadow:none!important}
#kunena.layout .message-published>.shadow-none{padding:22px 28px!important;margin-bottom:0!important}
#kunena.layout .message .kmsg{max-width:78ch;margin:0 auto;font:17px/1.85 Georgia,serif;color:#29251d}
#kunena.layout .kwho-admin{color:#663b19!important}#kunena.layout .message .kmsg img{max-width:100%;height:auto}
#kunena .pagination{margin:12px 0}#kunena .page-link{color:#000070;background:#f8f0dc;border-color:#aaa38f}
#kunena .kfooter{font-size:11px}#kunena svg{vertical-align:middle;flex-shrink:0}#kunena :focus-visible{outline:3px solid #b17e25;outline-offset:3px}
@media(max-width:767px){#kunena.layout{font-size:13px}#kunena .table{overflow-wrap:anywhere}#kunena .table>:not(caption)>*>*{padding:12px 8px}#kunena .table h3{font-size:14px}#kunena .card-header{font-size:18px}#kunena .table td div{font-size:11px}#kunena .btn{padding:7px 10px}}
@media(max-width:767px){#kunena.layout .message>.col-md-2{border-right:0;border-bottom:1px solid #c4b28b}#kunena.layout .message>.col-md-2 img{width:72px;height:auto}#kunena.layout .message-published>.shadow-none{padding:18px 15px!important}#kunena.layout .message .kmsg{font-size:16px}}

/* Keep each category and its latest message together on narrow screens. */
@media(max-width:767px){
  #kunena.layout .kfrontend table:has(tr.category){display:block!important}
  #kunena.layout .kfrontend table:has(tr.category)>tbody{display:block}
  #kunena.layout .kfrontend table:has(tr.category)>tbody>tr:not(.category){display:none}
  #kunena.layout .kfrontend tr.category{display:block;padding:12px 0;border-top:1px solid #b9aa87}
  #kunena.layout .kfrontend tr.category>td:not(.d-none){display:block;width:auto;padding:0 14px;border:0}
  #kunena.layout .kfrontend tr.category>td:last-child{padding-top:8px}
  #kunena.layout .kfrontend tr.category h3{font-size:16px;line-height:1.5}
  #kunena.layout .kfrontend tr.category h3>a:first-child{display:flex;align-items:center;min-height:44px}
  #kunena.layout .kfrontend tr.category h3 small{display:block;margin:0 0 6px;font-size:12px;white-space:normal}
  #kunena.layout .kfrontend tr.category .header-desc{display:block!important;margin-top:8px;font-size:13px;line-height:1.65}
  #kunena.layout .kfrontend tr.category #kcat-last{padding:0}
  #kunena.layout .kfrontend tr.category .lastpostlink a{display:inline-flex;align-items:center;min-height:44px;font-size:13px}
  #kunena.layout .kfrontend tr.category .datepost{color:#5c4d34}
  #kunena.layout .navbar-toggler,#kunena.layout .klogout>.btn-group>.btn{min-width:44px;min-height:44px}
  #kunena.layout .navbar-toggler::after{content:'Foros';margin-left:8px;font:700 13px Verdana,sans-serif;vertical-align:middle;color:#000070}
  #kunena.layout .offcanvas .nav-link{min-height:44px;display:flex;align-items:center}
  #kunena.layout input.form-control,#kunena.layout select.form-select{font-size:16px}
  #kunena.layout .btn{min-height:44px}
}

/* Align the participation notice with the message-body inset. */
#kunena.layout .message-published>p{margin-left:28px;margin-right:28px}
@media(max-width:767px){#kunena.layout .message-published>p{margin-left:15px;margin-right:15px}}

/* Approved sand forum surfaces, matching the existing parchment. */
.site:has(#kunena){--es-paper-group:#f4e8d2;--es-paper-reading:#f4e8d2;--es-paper-control:#eadcc2;--es-paper-input:#f4e8d2;--es-paper-ochre:#e8d7b8;--es-paper-border:#a28c67;--es-ink:#30291f;--es-muted:#645942}
.site #contenido #kunena{--es-forum-surface:#f4e8d2;--bs-body-color:#30291f;color:#30291f}
.site #contenido #kunena.layout .row.message{background:#f4e8d2;border-color:#a28c67}
.site #contenido #kunena.layout .message>.col-md-2{background:#e8d7b8;border-color:#a28c67}
.site #contenido #kunena .mykmsg-header{background:#eadcc2}
.site #contenido #kunena .legacy-member-badge{background:#e4d1b1;color:#17174b;border-color:#a28c67}
.site #contenido #kunena :is(.kmsg,.category-desc,.header-desc){color:#30291f}
.site #contenido #kunena.layout .table{--bs-table-color:#30291f;--bs-table-border-color:#c9b794;--bs-table-striped-bg:#eadcc2;--bs-table-striped-color:#30291f;--bs-table-hover-bg:#e4d1b1;--bs-table-hover-color:#30291f}
.site #contenido #kunena .table :is(th,td){border-color:#c9b794}
.site #contenido #kunena.layout .kfrontend .table tbody tr:hover{background:#e4d1b1}
.site #contenido #kunena .btn:not(.btn-primary):not(.active),.site #contenido #kunena .page-item:not(.active)>.page-link,.site #contenido #kunena .navbar-toggler{background:#eadcc2;color:#15294b;border-color:#866e48}
.site #contenido #kunena .btn:not(.btn-primary):not(.active):hover,.site #contenido #kunena .page-item:not(.active)>.page-link:hover{background:#e4d1b1;border-color:#755f3c}
.site #contenido #kunena :is(.badge,.label){background:#eadcc2!important;color:#3e3525!important;border-color:#a28c67}
.site #contenido #kunena :is(.form-control,.form-select){background:#f4e8d2;color:#30291f;border-color:#866e48}
.site:has(#kunena) #contenido .forum-era-nav{background:#eadcc2;color:#20304b;border-color:#a28c67}
.site #contenido #kunena .kfrontend{border-color:#a28c67!important}
.site:has(#kunena) #contenido .nick-return-card{background:#eadcc2;border-color:#a28c67}
.site:has(#kunena) .content-sheet{background:#f6edda url('../assets/fondo_crema.jpg') repeat;border-color:#b69b66}
.site:has(#kunena) .sidebar :is(.panel,.panel-body,.side-menu){background:#f6edda url('../assets/fondo_crema.jpg') repeat;border-color:#b69b66}
.site #contenido #kunena .kwho-admin{color:#334665!important}

/* Mobile forum orientation; native topics, editor and message surfaces preserved. */
@media (max-width:650px) {
 .site #contenido:has(#kunena) .community-scene {margin-bottom:14px}
 .site #contenido:has(#kunena) .community-scene .editorial-scene-copy {padding:16px}
 .site #contenido:has(#kunena) .community-scene .eyebrow {margin-bottom:6px}
 .site #contenido:has(#kunena) .community-scene h1 {margin:4px 0 10px}
 .site #contenido:has(#kunena) .community-scene .section-intro {margin-bottom:0}
 .site #contenido:has(#kunena) .community-scene .editorial-scene-art {height:100px;min-height:100px}
 .site #contenido .forum-era-nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;padding:8px 12px;margin-bottom:10px}
 .site #contenido .forum-era-nav>strong {grid-column:1/-1}
 .site #contenido .forum-era-nav>a {min-width:0;min-height:44px;white-space:normal}
 .site #contenido #kunena>.navbar {padding:6px 10px;margin-bottom:8px}
 .site #contenido #kunena>.pagination-container-links {padding-top:0!important;margin:6px 0}
 .site #contenido #kunena #jumpto {margin:8px 0}
 .site #contenido #kunena #jumpto .selector {width:100%;max-width:none}
 .site #contenido #kunena #jumpto select {width:100%;max-width:none;min-height:44px}
 .site #contenido #kunena>.kfrontend {margin:10px 0 14px}
}

/* Topic subjects keep their own readable size instead of inheriting metadata text. */
@media (max-width:767px) {
  .site #contenido #kunena.layout a.topictitle {
    display:inline-flex;align-items:center;min-height:44px;max-width:100%;
    padding-block:4px;font-size:17px;line-height:1.45;font-weight:600;
    white-space:normal;overflow-wrap:anywhere;
  }
  .site #contenido #kunena.layout .kfrontend tr.category .lastpostlink a {
    font-size:16px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;
  }
}

/* Lectura despejada. Kunena conserva su presentación original si el script no interviene. */
@media (max-width:767.98px) {
  #kunena.layout .espejos-reading-hidden,
  #kunena.layout .message:has(>.espejos-reading-post)>.col-md-2 {display:none!important}
  #kunena.layout .message>.espejos-reading-post {width:100%}
  #kunena.layout .espejos-reading-post>.shadow-none {padding:12px 15px 10px!important}
  #kunena.layout .espejos-reading-author {
    margin-bottom:8px;scroll-margin-top:12px;overflow-wrap:anywhere;
    color:#234966;font:700 16px/1.35 Verdana,Arial,sans-serif;
  }
  #kunena.layout .espejos-reading-author:target {border-inline-start:3px solid #98703a;padding-inline-start:8px}
  #kunena.layout .espejos-reading-identity {
    display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 10px;
    margin-top:4px;color:#51432e;font:12px/1.5 Verdana,Arial,sans-serif;
  }
  .site #contenido #kunena .espejos-reading-identity :is(.espejos-affiliation,.legacy-member-badge) {
    display:inline;margin:0;padding:0;border:0;background:none;box-shadow:none;
    color:inherit;font:inherit;white-space:normal;
  }
  .site #contenido #kunena .espejos-reading-identity .legacy-member-badge {color:#69481f}
  #kunena .espejos-reading-identity .legacy-member-badge::before {
    content:"";display:inline-block;width:4px;height:4px;margin:0 7px 2px 0;
    background:#98703a;transform:rotate(45deg);
  }
  #kunena .espejos-reading-identity .espejos-affiliation-dot {display:none}
  #kunena.layout .espejos-reading-foot {
    display:flex;flex-wrap:wrap;align-items:flex-start;gap:0 8px;
    margin:0 15px;border-top:1px solid #c9b794;font:12px/1.5 Verdana,Arial,sans-serif;
    overflow-wrap:anywhere;
  }
  #kunena.layout .espejos-reading-foot details {flex:1 1 130px;min-width:0}
  #kunena.layout .espejos-reading-foot summary {min-height:44px;padding-block:12px;color:#171751}
  #kunena.layout .espejos-reading-foot .kmessage-thankyou {
    margin:0 0 8px;padding:0;border:0;background:none;color:#234966;font:inherit;
  }
  #kunena.layout .topic-item-messages .kmessage-thankyou .legacy-member-badge,
  #kunena.layout .espejos-reading-foot .kmessage-thankyou>svg {display:none}
  #kunena.layout .espejos-reading-foot>small {
    float:none!important;max-width:100%;margin-inline-start:auto;font:inherit;
  }
  #kunena.layout .espejos-reading-foot>small .text-muted {color:#64563e!important}
  #kunena.layout .espejos-reading-foot>small a[rel="canonical"],
  #kunena.layout .espejos-reading-join a {
    display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;
  }
  #kunena.layout .espejos-reading-join {margin:0;text-align:center}
}

/* Usar en los listados la misma arena que en los mensajes del foro. */
.site #contenido #kunena.layout :is(#categoryactions, #ktopicsform, .kfrontend.section > .collapse) > .table > tbody > tr.category {
  --espejos-topic-background: #f4e8d2;
}

.site #contenido #kunena.layout :is(#categoryactions, #ktopicsform) > .table > tbody > tr.category-stickymsg {
  --espejos-topic-background: #e8d7b8;
}

.site #contenido #kunena.layout :is(#categoryactions, #ktopicsform, .kfrontend.section > .collapse) > .table > tbody > tr:is(.category, .category-stickymsg):is(:hover, :focus-within) {
  --espejos-topic-background: #e4d1b1;
}

.site #contenido #kunena.layout :is(#categoryactions, #ktopicsform, .kfrontend.section > .collapse) > .table > tbody > tr:is(.category, .category-stickymsg),
.site #contenido #kunena.layout :is(#categoryactions, #ktopicsform, .kfrontend.section > .collapse) > .table > tbody > tr:is(.category, .category-stickymsg) > td {
  /* Kunena marca en gris las filas fijadas y sus iconos con !important. */
  background-color: var(--espejos-topic-background) !important;
  border-color: #a28c67;
}

.site #contenido #kunena.layout #kunena_search_results .message-published {
  background: #f4e8d2;
  border: 1px solid #a28c67;
  border-radius: .25rem;
  padding: 12px;
}

@media (min-width: 768px) {
  .site #contenido #kunena.layout :is(#categoryactions, #ktopicsform) a.topictitle {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
  }
}
