/* AES Clean Theme v1.5.40 — Craft taxonomy drawer */
.post-type-archive-aes_craft .aes-profile-filter__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.aes-craft-taxonomy-trigger{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:34px;
  padding:8px 12px;
  border:1px solid var(--aes-navy,#102743);
  background:#fff;
  color:var(--aes-navy,#102743);
  font:800 9px/1.15 var(--aes-font-body,Arial,sans-serif);
  letter-spacing:.02em;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,border-color .16s ease;
}
.aes-craft-taxonomy-trigger svg{width:14px;height:14px;flex:0 0 14px}
.aes-craft-taxonomy-trigger:hover,
.aes-craft-taxonomy-trigger:focus-visible{
  border-color:var(--aes-gold,#c5a169);
  background:var(--aes-navy,#102743);
  color:#fff;
  outline:0;
}
body.aes-craft-taxonomy-is-open{overflow:hidden}
.aes-craft-taxonomy-overlay{
  position:fixed;
  inset:0;
  z-index:99990;
  background:rgba(7,22,39,.46);
  opacity:0;
  transition:opacity .22s ease;
}
.aes-craft-taxonomy-overlay.is-open{opacity:1}
.aes-craft-taxonomy-drawer{
  position:fixed;
  z-index:99991;
  top:0;
  right:0;
  width:min(620px,92vw);
  height:100dvh;
  display:flex;
  flex-direction:column;
  background:#fff;
  border-left:1px solid #d9d3c8;
  box-shadow:-24px 0 56px rgba(7,22,39,.14);
  transform:translateX(101%);
  visibility:hidden;
  transition:transform .26s ease,visibility 0s linear .26s;
}
.aes-craft-taxonomy-drawer.is-open{
  transform:translateX(0);
  visibility:visible;
  transition:transform .26s ease;
}
.aes-craft-taxonomy-drawer__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:28px 28px 23px;
  border-bottom:1px solid #e4ded4;
  background:#fbfaf7;
}
.aes-craft-taxonomy-drawer__eyebrow{
  display:block;
  margin-bottom:7px;
  color:var(--aes-gold,#c5a169);
  font:800 9px/1.2 var(--aes-font-body,Arial,sans-serif);
  letter-spacing:.12em;
}
.aes-craft-taxonomy-drawer__header h2{
  margin:0;
  color:var(--aes-navy,#102743);
  font:700 24px/1.15 Georgia,serif;
}
.aes-craft-taxonomy-drawer__header p{
  margin:6px 0 0;
  color:#6d747b;
  font:500 10px/1.4 var(--aes-font-body,Arial,sans-serif);
}
.aes-craft-taxonomy-drawer__close{
  appearance:none;
  display:grid;
  place-items:center;
  flex:0 0 36px;
  width:36px;
  height:36px;
  padding:0;
  border:1px solid #d9d3c8;
  background:#fff;
  color:var(--aes-navy,#102743);
  cursor:pointer;
}
.aes-craft-taxonomy-drawer__close svg{width:16px;height:16px}
.aes-craft-taxonomy-drawer__close:hover,
.aes-craft-taxonomy-drawer__close:focus-visible{border-color:var(--aes-gold,#c5a169);color:var(--aes-gold,#c5a169);outline:0}
.aes-craft-taxonomy-drawer__body{
  flex:1 1 auto;
  overflow:auto;
  overscroll-behavior:contain;
  padding:18px 28px 34px;
}
.aes-craft-taxonomy-domain{
  margin:0 0 8px;
  border:1px solid #e2ddd3;
  background:#fff;
}
.aes-craft-taxonomy-domain>summary{
  position:relative;
  display:grid;
  grid-template-columns:30px minmax(0,1fr) 28px 18px;
  align-items:center;
  gap:9px;
  min-height:50px;
  padding:10px 13px;
  list-style:none;
  cursor:pointer;
  background:#f8f5ef;
  color:var(--aes-navy,#102743);
}
.aes-craft-taxonomy-domain>summary::-webkit-details-marker{display:none}
.aes-craft-taxonomy-domain__index{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border:1px solid rgba(197,161,105,.7);
  background:#fff;
  color:var(--aes-gold,#c5a169);
  font:800 8px/1 var(--aes-font-body,Arial,sans-serif);
}
.aes-craft-taxonomy-domain__title{font:800 10px/1.35 var(--aes-font-body,Arial,sans-serif)}
.aes-craft-taxonomy-domain__count{
  display:grid;
  place-items:center;
  min-width:25px;
  height:22px;
  padding:0 5px;
  border-radius:999px;
  background:#fff;
  color:#80868c;
  font:700 8px/1 var(--aes-font-body,Arial,sans-serif);
}
.aes-craft-taxonomy-domain__toggle{
  color:var(--aes-gold,#c5a169);
  font:400 18px/1 Arial,sans-serif;
  transition:transform .16s ease;
}
.aes-craft-taxonomy-domain[open] .aes-craft-taxonomy-domain__toggle{transform:rotate(45deg)}
.aes-craft-taxonomy-domain__profiles{padding:7px 10px 10px;background:#fff}
.aes-craft-taxonomy-profile{
  display:grid;
  grid-template-columns:26px minmax(0,1fr) auto;
  align-items:start;
  gap:9px;
  padding:10px 8px;
  border-bottom:1px solid #eee9e1;
  color:inherit;
  text-decoration:none;
}
.aes-craft-taxonomy-profile:last-child{border-bottom:0}
a.aes-craft-taxonomy-profile:hover,
a.aes-craft-taxonomy-profile:focus-visible{background:#fbf8f2;outline:0}
.aes-craft-taxonomy-profile__index{
  padding-top:2px;
  color:var(--aes-gold,#c5a169);
  font:800 8px/1.2 var(--aes-font-body,Arial,sans-serif);
}
.aes-craft-taxonomy-profile__copy{display:block;min-width:0}
.aes-craft-taxonomy-profile__copy strong{
  display:block;
  color:var(--aes-navy,#102743);
  font:800 9.5px/1.35 var(--aes-font-body,Arial,sans-serif);
}
.aes-craft-taxonomy-profile__copy small{
  display:block;
  margin-top:3px;
  color:#737a80;
  font:500 8.5px/1.45 var(--aes-font-body,Arial,sans-serif);
}
.aes-craft-taxonomy-profile code{
  padding-top:1px;
  color:#90959a;
  background:transparent;
  font:600 7.5px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;
  white-space:nowrap;
}
.aes-craft-taxonomy-profile--unpublished{opacity:.82}
@media(max-width:700px){
  .post-type-archive-aes_craft .aes-profile-filter__head{align-items:stretch;flex-direction:column}
  .aes-craft-taxonomy-trigger{width:100%}
  .aes-craft-taxonomy-drawer{width:100vw}
  .aes-craft-taxonomy-drawer__header{padding:22px 18px 18px}
  .aes-craft-taxonomy-drawer__body{padding:14px 14px 28px}
  .aes-craft-taxonomy-profile{grid-template-columns:24px minmax(0,1fr)}
  .aes-craft-taxonomy-profile code{grid-column:2;margin-top:1px}
}
@media(prefers-reduced-motion:reduce){
  .aes-craft-taxonomy-overlay,.aes-craft-taxonomy-drawer{transition:none}
}

/* v1.5.87 — Motif Taxonomy v3.0 drawer parity with the Craft archive. */
.post-type-archive-aes_motif .aes-profile-filter__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.aes-motif-taxonomy-drawer{width:min(700px,94vw)}
.aes-motif-taxonomy-category__groups{padding:9px 10px 12px;background:#fff}
.aes-motif-taxonomy-group{
  margin:0 0 9px;
  border:1px solid #e9e4dc;
  background:#fff;
}
.aes-motif-taxonomy-group:last-child{margin-bottom:0}
.aes-motif-taxonomy-group__head{
  display:grid;
  grid-template-columns:24px minmax(0,1fr) auto 28px;
  align-items:start;
  gap:8px;
  padding:9px 9px 8px;
  border-bottom:1px solid #eee9e1;
  background:#fbfaf7;
}
.aes-motif-taxonomy-group__index{
  padding-top:3px;
  color:var(--aes-gold,#c5a169);
  font:800 7.5px/1.2 var(--aes-font-body,Arial,sans-serif);
}
.aes-motif-taxonomy-group__copy{min-width:0}
.aes-motif-taxonomy-group__copy>a,
.aes-motif-taxonomy-group__copy>strong{
  display:block;
  color:var(--aes-navy,#102743);
  font:800 9px/1.35 var(--aes-font-body,Arial,sans-serif);
  text-decoration:none;
}
.aes-motif-taxonomy-group__copy>a:hover,
.aes-motif-taxonomy-group__copy>a:focus-visible{color:var(--aes-gold,#c5a169);outline:0}
.aes-motif-taxonomy-group__copy small{
  display:block;
  margin-top:3px;
  color:#737a80;
  font:500 8px/1.4 var(--aes-font-body,Arial,sans-serif);
}
.aes-motif-taxonomy-group__head code{
  padding-top:2px;
  color:#90959a;
  background:transparent;
  font:600 7px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;
  white-space:nowrap;
}
.aes-motif-taxonomy-group__count{
  display:grid;
  place-items:center;
  min-width:24px;
  height:20px;
  padding:0 4px;
  border-radius:999px;
  background:#fff;
  color:#80868c;
  font:700 7.5px/1 var(--aes-font-body,Arial,sans-serif);
}
.aes-motif-taxonomy-group__motifs{padding:3px 8px 6px}
.aes-motif-taxonomy-category__empty{
  margin:0;
  padding:10px 9px;
  color:#7b8186;
  font:500 8.5px/1.45 var(--aes-font-body,Arial,sans-serif);
}
@media(max-width:700px){
  .post-type-archive-aes_motif .aes-profile-filter__head{align-items:stretch;flex-direction:column}
  .aes-motif-taxonomy-drawer{width:100vw}
  .aes-motif-taxonomy-group__head{grid-template-columns:22px minmax(0,1fr) 26px}
  .aes-motif-taxonomy-group__head code{grid-column:2;grid-row:2;margin-top:-2px}
  .aes-motif-taxonomy-group__count{grid-column:3;grid-row:1}
}
