/* Main nav: align dropdown links with the parent link (no left indent). */
#top-menu .sub-menu,
.et_pb_menu .et-menu .sub-menu,
.et_pb_menu .nav li ul {
	padding-left: 0 !important;
	margin-left: 0 !important;
}
#top-menu .sub-menu li a,
.et_pb_menu .et-menu .sub-menu li a,
.et_pb_menu .nav li ul a {
	padding-left: 0 !important;
	margin-left: 0 !important;
	text-indent: 0 !important;
}

/* Resource popups (.ors-pr): overlay the viewport so the dialog is always visible
   whichever card was clicked, and sits below the sticky header. Overrides the
   per-page copies of the .ors-pr CSS (higher specificity). */
.ors-pr .ors-pr__pop{position:fixed;inset:0;z-index:100000;align-items:center;padding:96px 16px 24px;background:rgba(35,31,26,.42)}
.ors-pr .ors-pr__bd{border-radius:0}
.ors-pr .ors-pr__dlg{position:relative;top:auto;max-height:calc(100vh - 120px)}
.ors-pr.ors-pr:has(.ors-pr__toggle:checked){min-height:0}

/* Resource template header: the two Back pill buttons (class set on the column
   in Theme Builder layout "Resource") sit inline and wrap on narrow screens. */
.et-l .ors-back-links.et_pb_column{display:flex!important;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--gvid-space-30,.825rem)}
.et-l .ors-back-links .et_pb_button_module_wrapper{width:auto!important;margin:0!important}
/* Smaller pills for the Resource header back buttons */
body.et-db #page-container #et-boc .et-l .ors-back-links .et_pb_button{font-size:var(--gvid-type-size-ui,.875rem)!important;line-height:1.2!important;padding:.45em 1.1em!important}
body.et-db #page-container #et-boc .et-l .ors-back-links .et_pb_button:hover{padding:.45em 1.1em!important}
