/* Holiday detail-page clarity layer — 17 Oct 2026.
   Scoped to generated holiday records only. */
.holiday-detail-page .holiday-reference-sheet{
  margin:0 0 24px;
  padding:28px;
  border:1px solid #A7D3FF;
  border-radius:14px;
  background:linear-gradient(145deg,#F2F8FF 0%,#F2F8FF 100%);
  box-shadow:0 14px 34px rgba(11,45,107,0.06);
}
.holiday-reference-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:start;
  padding-bottom:20px;
  border-bottom:1px solid #A7D3FF;
}
.holiday-reference-head h2{
  margin:5px 0 8px!important;
  font-size:clamp(26px,2.7vw,36px)!important;
  line-height:1.18!important;
  letter-spacing:-.03em;
}
.holiday-reference-head>div>p:last-child{
  max-width:760px;
  margin:0;
  color:#506779;
  font-size:15px;
  line-height:1.7;
}
.holiday-source-identity{
  min-width:190px;
  padding:13px 15px;
  border:1px solid #A7D3FF;
  border-radius:10px;
  background:#fff;
  text-align:left;
}
.holiday-source-identity span,
.holiday-source-identity strong{display:block}
.holiday-source-identity span{
  color:#5d7180;
  font-size:10px;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.holiday-source-identity strong{
  margin-top:5px;
  color:#0B2D6B;
  font-size:12px;
  overflow-wrap:anywhere;
}
.holiday-reference-facts{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:20px;
}
.holiday-reference-fact{
  min-width:0;
  padding:14px 15px;
  border:1px solid #A7D3FF;
  border-radius:10px;
  background:#fff;
}
.holiday-reference-fact span,
.holiday-reference-fact strong{display:block}
.holiday-reference-fact span{
  color:#6c7e89;
  font-size:10px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.holiday-reference-fact strong{
  margin-top:6px;
  color:#0B2D6B;
  font-size:14px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.holiday-reference-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}
.holiday-reference-actions .btn{
  min-height:44px;
  padding:11px 17px;
}
.holiday-employer-note{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
  gap:24px;
  margin-top:22px;
  padding:20px;
  border-radius:12px;
  background:#0B2D6B;
  color:#fff;
}
.holiday-employer-note>div>strong{
  display:block;
  margin-bottom:7px;
  color:#fff!important;
  -webkit-text-fill-color:currentColor!important;
  font-size:15px;
}
.holiday-employer-note>div>p{
  margin:0;
  color:#F2F8FF!important;
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
  font-size:14px;
  line-height:1.65;
}
.holiday-employer-note ol{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}
.holiday-employer-note li{
  display:grid;
  grid-template-columns:24px 1fr;
  gap:8px;
  align-items:start;
  color:#F2F8FF!important;
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
  font-size:12px;
  line-height:1.5;
}
.holiday-employer-note li span{
  color:#F2F8FF!important;
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
}
.holiday-employer-note li strong{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#2F8CFF;
  color:#fff;
  font-size:10px;
}
.holiday-document-panel{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:22px;
  align-items:center;
  border-color:#A7D3FF!important;
  background:#F2F8FF!important;
}
.holiday-document-panel h2{
  margin-bottom:7px!important;
}
.holiday-document-panel p{
  margin:0!important;
  font-size:13px!important;
  line-height:1.6!important;
}
.holiday-document-panel .btn{
  white-space:nowrap;
}
@media(max-width:980px){
  .holiday-reference-head{grid-template-columns:1fr}
  .holiday-source-identity{min-width:0;max-width:420px}
  .holiday-reference-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .holiday-employer-note{grid-template-columns:1fr}
}
@media(max-width:640px){
  .holiday-detail-page .holiday-reference-sheet{padding:20px 16px}
  .holiday-reference-facts{grid-template-columns:1fr}
  .holiday-reference-actions{display:grid}
  .holiday-reference-actions .btn{width:100%;justify-content:center;text-align:center}
  .holiday-employer-note{padding:17px}
  .holiday-document-panel{grid-template-columns:1fr}
  .holiday-document-panel .btn{width:100%;text-align:center;justify-content:center}
}

/* Live contrast lock: the global band/readability layers use !important text
   colors. Keep this employer-note panel explicitly dark with visible text. */
:root body main.library-detail-page .holiday-reference-sheet .holiday-employer-note{
  background:#0B2D6B!important;
  color:#fff!important;
  -webkit-text-fill-color:currentColor!important;
  opacity:1!important;
}
:root body main.library-detail-page .holiday-reference-sheet .holiday-employer-note :is(strong,p,li,li span){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}
:root body main.library-detail-page .holiday-reference-sheet .holiday-employer-note li strong{
  background:#2F8CFF!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
