/* DEFUXA V12.42 · Photographic category navigation
   Editorial category artwork is purely illustrative and bundled with the site.
   High-contrast text and local files avoid remote dependencies and layout shift. */
.categories-section .category-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.categories-section .category-tile--visual{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:190px;
  padding:23px 20px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:3px;
  background:#142232;
  text-align:center;
  color:#fff;
  box-shadow:0 5px 15px rgba(12,22,35,.11);
  transition:border-color .2s ease,box-shadow .2s ease;
}
.categories-section .category-tile--visual .category-tile__photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  pointer-events:none;
  filter:saturate(.86) contrast(1.04);
  transition:transform .35s ease,filter .3s ease;
}
.categories-section .category-tile--visual::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  /* Black vignette improves legibility on bright science/sky backgrounds. */
  background:linear-gradient(180deg,rgba(5,12,23,.47),rgba(2,9,20,.67)),
             linear-gradient(90deg,rgba(8,15,26,.22),transparent 48%,rgba(8,15,26,.22));
  transition:background .2s ease;
}
.categories-section .category-tile--visual .category-tile__kicker{
  position:relative;
  z-index:2;
  display:block;
  color:#f6f8fb;
  font-family:var(--sans);
  font-size:10px;
  font-weight:800;
  letter-spacing:.14em;
  text-shadow:0 1px 8px rgba(0,0,0,.55);
}
.categories-section .category-tile--visual .category-tile__headline{
  position:relative;
  z-index:2;
  display:block;
  max-width:100%;
  color:#fff;
  font-family:var(--serif);
  font-weight:750;
  font-size:clamp(24px,2.25vw,31px);
  line-height:1.14;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
  text-shadow:0 2px 11px rgba(0,0,0,.9);
}
.categories-section .category-tile--visual .category-arrow{
  position:absolute;
  right:13px;
  bottom:13px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  margin:0;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.6);
  border-radius:3px;
  color:#fff;
  line-height:1;
  pointer-events:none;
}
.categories-section .category-tile--visual .category-arrow .ui-icon{
  width:14px;height:14px;filter:brightness(0) invert(1);
}
.categories-section .category-tile--visual:hover{
  background:#142232;
  border-color:rgba(255,255,255,.75);
  color:#fff;
  box-shadow:0 10px 26px rgba(12,22,35,.19);
}
.categories-section .category-tile--visual:hover .category-tile__photo{
  transform:scale(1.045);filter:saturate(.95) contrast(1.05);
}
.categories-section .category-tile--visual:focus-visible{
  outline:3px solid #c51c38;
  outline-offset:3px;
}
@media(max-width:1050px){
  .categories-section .category-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:760px){
  .categories-section .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .categories-section .category-tile--visual{min-height:148px;padding:16px 10px;gap:6px;}
  .categories-section .category-tile--visual .category-tile__headline{font-size:clamp(19px,4.5vw,27px);}
  .categories-section .category-tile--visual .category-tile__kicker{font-size:8px;letter-spacing:.095em;}
  .categories-section .category-tile--visual .category-arrow{width:25px;height:25px;right:8px;bottom:8px;}
  .categories-section .category-tile--visual .category-arrow .ui-icon{width:12px;height:12px;}
}
@media(prefers-reduced-motion:reduce){
  .categories-section .category-tile--visual,
  .categories-section .category-tile--visual .category-tile__photo{transition:none!important;transform:none!important;}
}


/* DEFUXA Explore — lightweight alphabetical directory; scoped to /explore. */
.dfx-explore-directory{padding:46px 0 70px;max-width:100%;color:var(--ink,#142132)}
.dfx-explore-hero{padding:0 0 32px;border-bottom:1px solid var(--line,#dce2e6)}
.dfx-explore-hero .eyebrow{display:block;margin:0 0 14px}
.dfx-explore-hero h1{font:850 clamp(36px,5vw,60px)/1.04 var(--sans,Arial,sans-serif);letter-spacing:-.065em;margin:0;color:inherit}
.dfx-explore-hero p:last-child{font-size:15px;line-height:1.65;color:var(--soft,#687789);max-width:660px;margin:15px 0 0}
.dfx-explore-toolbar{margin-top:26px;padding:20px 22px;background:var(--surface,#f4f5f6);border:1px solid var(--line,#dce2e6);border-radius:7px}
.dfx-explore-toolbar label{display:block;font-size:11px;font-weight:850;letter-spacing:.08em;margin-bottom:10px;text-transform:uppercase}
.dfx-explore-searchbox{display:flex;align-items:center;gap:12px;background:var(--paper,#fff);border:1px solid var(--line,#dce2e6);border-radius:5px;padding:0 14px;min-height:48px}
.dfx-explore-searchbox:focus-within{border-color:var(--accent,#c9233d);box-shadow:0 0 0 2px rgba(200,32,56,.10)}
.dfx-explore-searchbox>.ui-icon{width:17px;height:17px;flex:0 0 17px;color:var(--soft,#687789)}
.dfx-explore-searchbox input{flex:1;min-width:0;width:100%;padding:13px 0;border:0;outline:0;box-shadow:none;background:transparent;color:inherit;font-size:14px}
.dfx-explore-searchbox button{border:0;background:transparent;font-size:11px;font-weight:750;color:var(--accent,#c9233d);padding:8px 3px}
.dfx-explore-section{margin-top:43px}
.dfx-explore-section-head{display:flex;justify-content:space-between;align-items:end;gap:12px;padding-bottom:16px;border-bottom:2px solid var(--ink,#142132)}
.dfx-explore-section-head .eyebrow{font-size:10px;display:block;margin-bottom:6px}
.dfx-explore-section-head h2{font:850 clamp(23px,2.3vw,32px)/1.15 var(--sans,Arial,sans-serif);letter-spacing:-.04em;margin:0}
.dfx-explore-total{font-size:11px;letter-spacing:.02em;white-space:nowrap;color:var(--soft,#687789)}
.dfx-explore-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:20px}
.dfx-explore-category{display:flex;flex-direction:column;min-width:0;min-height:128px;padding:16px 17px;border:1px solid var(--line,#dde3e9);border-radius:5px;background:var(--surface,#f4f5f6);color:inherit;transition:border-color .18s ease,background-color .18s ease}
.dfx-explore-category:hover{color:inherit;border-color:var(--accent,#c9233d);background:var(--paper,#fff)}
.dfx-explore-category small{font-size:9px;font-weight:820;letter-spacing:.09em;color:var(--accent,#c9233d)}
.dfx-explore-category strong{font-size:17px;line-height:1.24;letter-spacing:-.025em;margin:10px 0 9px;overflow-wrap:anywhere}
.dfx-explore-category span{font-size:11px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--soft,#687789);margin-top:auto}
.dfx-explore-category span .ui-icon{width:12px;height:12px;flex:0 0 auto}
.dfx-explore-topics-section{margin-top:55px}
.dfx-explore-topics-intro{font-size:13px;color:var(--soft,#687789);line-height:1.5;margin:15px 0}
.dfx-explore-alphabet{display:flex;gap:6px;flex-wrap:wrap;margin-top:17px}
.dfx-explore-alphabet button{background:var(--surface,#f4f5f6);color:inherit;border:1px solid var(--line,#dce2e6);font-size:11px;font-weight:780;min-height:35px;padding:7px 11px;border-radius:4px}
.dfx-explore-alphabet button:hover{border-color:var(--accent,#c9233d);opacity:1}
.dfx-explore-alphabet button.is-selected{background:var(--accent,#c9233d);border-color:var(--accent,#c9233d);color:#fff}
.dfx-explore-counter{font-size:11px;color:var(--soft,#687789);margin:17px 0 6px}
.dfx-explore-topics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:27px;row-gap:0}
.dfx-explore-topic{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0;border-bottom:1px solid var(--line,#dce2e6);font-size:12px;color:inherit;line-height:1.4}
.dfx-explore-topic:hover{color:var(--accent,#c9233d)}
.dfx-explore-topic>span{overflow-wrap:anywhere}
.dfx-explore-topic>small{color:var(--soft,#687789);flex-shrink:0;font-size:10px}
.dfx-explore-empty,.dfx-explore-placeholder{padding:22px 16px;margin:18px 0 0;border:1px dashed var(--line,#dce2e6);color:var(--soft,#687789);font-size:13px}
.dfx-explore-directory :is(button,a,input):focus-visible{outline:2px solid var(--accent,#c9233d);outline-offset:3px}
/* The mobile homepage already uses a swipeable section rail. Keep View All visible. */
.dfx-mobile-section-rail__all{display:none}
@media(max-width:1100px){.dfx-explore-categories,.dfx-explore-topics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  .dfx-explore-directory{padding-top:28px;padding-bottom:50px}
  .dfx-explore-hero{padding-bottom:24px}
  .dfx-explore-hero p:last-child{font-size:13px}
  .dfx-explore-toolbar{padding:14px;margin-top:20px}
  .dfx-explore-section{margin-top:34px}
  .dfx-explore-categories,.dfx-explore-topics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .dfx-explore-category{min-height:115px;padding:12px}
  .dfx-explore-category strong{font-size:15px}
  .dfx-explore-topics{column-gap:17px;row-gap:0}
  .dfx-explore-topic{font-size:11px;gap:5px}
  .dfx-explore-alphabet{gap:5px}
  .dfx-explore-alphabet button{padding:6px 9px}
  .dfx-mobile-section-rail__all{display:flex;flex:0 0 56px;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:67px;font-size:10px;font-weight:850;line-height:1.15;text-align:center;border:1px solid var(--line,#dce2e6);border-radius:6px;background:var(--paper,#fff);color:var(--accent,#c9233d)}
  .dfx-mobile-section-rail__all .ui-icon{width:14px;height:14px}
}
@media(max-width:350px){
  .dfx-explore-category{padding:10px}
  .dfx-explore-category strong{font-size:14px}
  .dfx-mobile-section-rail__all{flex-basis:48px;font-size:9px}
}
html[data-theme=dark] .dfx-explore-category{background:#182330;border-color:#415162}
html[data-theme=dark] .dfx-explore-category:hover{background:#233344;border-color:#e0687a}
html[data-theme=dark] .dfx-explore-alphabet button{background:#233344;border-color:#435567;color:#f0f5f8}
html[data-theme=dark] .dfx-explore-alphabet button.is-selected{background:#c82743;border-color:#c82743;color:#fff}
html[data-theme=dark] .dfx-explore-searchbox{background:#202e3e;border-color:#445466}
html[data-theme=dark] .dfx-mobile-section-rail__all{background:#202e3e;border-color:#455264;color:#f3a0ac}
@media(prefers-reduced-motion:reduce){.dfx-explore-category{transition:none}}


/* DEFUXA Explore — category photographs reuse the site's own category artwork. */
.dfx-explore-directory .dfx-explore-category--photo{
  position:relative;isolation:isolate;overflow:hidden;min-height:176px;
  padding:18px 18px 16px;background:#142232;color:#fff;border:1px solid rgba(19,35,50,.15);
  box-shadow:0 4px 15px rgba(9,21,32,.10);transition:border-color .18s ease,box-shadow .18s ease;
}
.dfx-explore-directory .dfx-explore-category__image{
  position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;
  filter:saturate(.85) contrast(1.06);transition:transform .35s ease,filter .3s ease;
}
.dfx-explore-directory .dfx-explore-category--photo::before{
  content:"";position:absolute;z-index:1;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(5,13,24,.42),rgba(4,11,20,.42) 40%,rgba(3,9,18,.91));
}
.dfx-explore-directory .dfx-explore-category--photo :is(small,strong,span){position:relative;z-index:2}
.dfx-explore-directory .dfx-explore-category--photo small{color:#f9c7cd;text-shadow:0 1px 4px #09111a}
.dfx-explore-directory .dfx-explore-category--photo strong{font-size:clamp(20px,2vw,27px);color:#fff;text-shadow:0 2px 7px #070d19}
.dfx-explore-directory .dfx-explore-category--photo span{color:#f2f5f7;font-weight:650;text-shadow:0 1px 5px #070d19}
.dfx-explore-directory .dfx-explore-category--photo span .ui-icon{width:15px;height:15px;filter:brightness(0) invert(1)}
.dfx-explore-directory .dfx-explore-category--photo:hover,
.dfx-explore-directory .dfx-explore-category--photo:focus-visible{background:#142232;color:#fff;border-color:#e64760;box-shadow:0 10px 25px rgba(9,21,32,.19)}
.dfx-explore-directory .dfx-explore-category--photo:hover .dfx-explore-category__image{transform:scale(1.045);filter:saturate(.95) contrast(1.07)}
.dfx-explore-scope{display:flex;gap:8px;flex-wrap:wrap;margin:17px 0 13px}
.dfx-explore-scope button{display:inline-flex;align-items:center;gap:8px;min-height:39px;padding:8px 14px;border:1px solid var(--line,#dce2e6);border-radius:5px;background:var(--surface,#f4f5f6);color:inherit;font-size:12px;font-weight:780}
.dfx-explore-scope button span{font-size:10px;font-weight:700;opacity:.7}
.dfx-explore-scope button.is-selected{background:var(--ink,#142132);border-color:var(--ink,#142132);color:var(--paper,#fff)}
.dfx-explore-scope button:disabled{opacity:.45;cursor:not-allowed}
.dfx-explore-more-wrap{display:flex;justify-content:center;margin:24px 0 0}
.dfx-explore-more{border:1px solid var(--line,#dce2e6);background:var(--surface,#f4f5f6);color:inherit;border-radius:5px;padding:12px 20px;min-height:44px;font-size:12px;font-weight:780}
.dfx-explore-more:hover{border-color:var(--accent,#d91f32);opacity:1}
.dfx-explore-topics-intro strong{color:var(--ink,#142132)}
html[data-theme=dark] .dfx-explore-directory .dfx-explore-category--photo,
html[data-theme=dark] .dfx-explore-directory .dfx-explore-category--photo:hover{background:#142232;color:#fff;border-color:#33485a}
html[data-theme=dark] .dfx-explore-directory .dfx-explore-category--photo:hover{border-color:#ef677d}
html[data-theme=dark] .dfx-explore-directory .dfx-explore-category--photo strong,
html[data-theme=dark] .dfx-explore-directory .dfx-explore-category--photo span{color:#fff}
html[data-theme=dark] .dfx-explore-scope button.is-selected{background:#e9eef3;border-color:#e9eef3;color:#162333}
html[data-theme=dark] .dfx-explore-scope button:not(.is-selected),
html[data-theme=dark] .dfx-explore-more{background:#233344;border-color:#435567;color:#f0f5f8}
@media(max-width:760px){
  .dfx-explore-directory .dfx-explore-category--photo{min-height:158px;padding:13px}
  .dfx-explore-directory .dfx-explore-category--photo strong{font-size:19px}
  .dfx-explore-scope button{font-size:11px;padding:7px 10px}
}
@media(prefers-reduced-motion:reduce){
  .dfx-explore-directory .dfx-explore-category--photo,
  .dfx-explore-directory .dfx-explore-category__image{transition:none!important;transform:none!important}
}
