.fhmp-podcast-picker{padding:14px 18px 16px;border-bottom:1px solid #e4e7eb;background:#fff;flex:none}
.fhmp-study :is(.fhmp-podcast-picker,.fhmp-scripture-picker) label{display:block;font-size:.9rem;font-weight:700;margin:0 0 .45rem}
.fhmp-podcast-label{display:flex;align-items:baseline;flex-wrap:wrap;gap:.15rem .35rem;margin:0 0 .45rem}
.fhmp-study .fhmp-podcast-picker .fhmp-podcast-label label{margin:0}
#study-podcast-disclaimer{color:var(--muted);font-size:.8rem}
.fhmp-study :is(.fhmp-podcast-picker,.fhmp-scripture-picker) select{width:100%;min-width:0;font-size:1rem;line-height:1.5;min-height:46px;border:1px solid #8a939f;border-radius:5px;padding:.55rem 2.4rem .55rem .7rem;color:#172333;background:#fff;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23233446' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .7rem center}
.fhmp-study :is(.fhmp-podcast-picker,.fhmp-scripture-picker) select:focus-visible{outline:3px solid #ba913b;outline-offset:2px}
.fhmp-description{padding:18px;font-size:1rem;line-height:1.65;overflow-wrap:anywhere}
.fhmp-description h3{font-size:1.1rem;line-height:1.5;margin:0 0 .75rem}
.fhmp-description-text{white-space:normal;overflow-wrap:anywhere}
.fhmp-description small{display:block;border-top:1px solid #d6dce1;padding-top:1rem;margin-top:1rem;font-size:.875rem;color:#425365}
.fhmp-unavailable{padding:20px;margin:0;background:#eef3f8;line-height:1.6;font-size:1rem}
.fh-study .study-listen{flex-wrap:wrap;gap:.6rem 1rem}
.fh-study .study-panel-heading h2{overflow-wrap:anywhere}
.fh-study [hidden]{display:none!important}

.fhmp-source-note{padding:.7rem;border-left:3px solid #ba913b;background:#f4f6f9;font-size:.9rem}

.fhmp-related{padding:.6rem 1rem;border-top:1px solid #e4e7eb}
.fhmp-season-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: .65rem .75rem .35rem;
  border: 1px solid var(--border);
  border-radius: .55rem;
  overflow: hidden;
}
.fhmp-study .fhmp-season-picker button {
  min-height: 40px;
  padding: .35rem .5rem;
  border: 0;
  border-radius: 0;
  background: #f6f6f6;
  color: #246276;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.fhmp-study .fhmp-season-picker button + button { border-inline-start: 1px solid var(--border); }
.fhmp-study .fhmp-season-picker button:hover { background: #e7eef1; }
.fhmp-study .fhmp-season-picker button[aria-pressed="true"] { background: #dce9ef; color: var(--navy); }
.fhmp-study .fhmp-season-picker button:focus-visible { outline: 2px solid var(--navy); outline-offset: -3px; }
.fhmp-study .fhmp-part-label { margin: 0; padding: .55rem 1rem; font-size: 1rem; }
.fhmp-related summary{cursor:pointer;font-weight:600}
.fhmp-related-videos{display:grid;gap:1rem;margin:.6rem 0 0;padding:0;list-style:none}
.fhmp-related-videos p{margin:0 0 .35rem;font-size:.93rem;overflow-wrap:anywhere}
.fhmp-related-player{width:100%;aspect-ratio:16/9;min-height:200px;overflow:hidden;border-radius:.5rem;background:var(--navy)}
.fhmp-related-player iframe{display:block;width:100%;height:100%;border:0}
.fhmp-study .fhmp-related-player button:focus-visible{outline-offset:-4px}
.fhmp-apple-player { display: block; width: 100%; border: 0; }
.fhmp-unavailable a{display:block;margin-top:.45rem}
body:has(.fhmp-study) > :is(.elementor-location-header,.elementor-location-footer,.gtranslate_wrapper) {display:none!important}
/* Ward Study header */
.fhmp-study {
  --fhmp-header-inset: clamp(1rem, 4.7vw, 5rem);
  --fhmp-header-control-height: 3rem;
}
.fhmp-study .study-header {position:relative;z-index:5}
.fhmp-study .study-header-inner {
  display:grid;grid-template-columns:minmax(14rem,.85fr) minmax(0,2.75fr);align-items:center;
  gap:clamp(.8rem,1.6vw,1.4rem);padding:1.15rem var(--fhmp-header-inset);
}
.fhmp-header-title {container-type:inline-size;min-width:0}
.fhmp-study .study-header h1 {font-size:min(4.2rem,8.7cqi);text-transform:none;white-space:nowrap}
.fhmp-study .study-header h1 + p {font-size:clamp(.9rem,5.1cqi,1.25rem)}
.fhmp-study .fhmp-ward-disclaimer {background:#eaf0fc;font-size:.875rem;line-height:1.4}
.fhmp-ward-disclaimer > p {max-width:1600px;margin:0 auto;padding:.45rem var(--fhmp-header-inset)}
.fhmp-header-controls {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.16fr) clamp(7.5rem,10.4vw,10rem) max-content;
  align-items:end;gap:clamp(.65rem,1.15vw,1.15rem);min-width:0;
}
.fhmp-header-controls :is(.study-episode-picker,.fhmp-language-picker) {
  display:grid;justify-items:stretch;gap:.4rem;min-width:0;margin:0;
}
.fhmp-header-controls label {font-weight:700;line-height:1.25}
.fhmp-lesson-controls {
  position:relative;display:flex;align-items:center;min-width:0;min-height:var(--fhmp-header-control-height);
  border:1px solid var(--gold-dark);border-radius:.55rem;background:var(--gold);color:#fff;
}
.fhmp-lesson-selection {display:block;padding:.48rem 2rem .48rem .7rem;line-height:1.25;overflow-wrap:anywhere}
.fhmp-study .fhmp-lesson-controls #study-episode-picker {
  position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font:inherit;
}
.fhmp-study .fhmp-lesson-controls #study-episode-picker option,
.fhmp-study #study-language-picker option {background:#fff;color:var(--navy)}
.fhmp-lesson-controls::after,.fhmp-study #study-language-picker {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-size:1rem;
}
.fhmp-lesson-controls::after {content:"";position:absolute;right:.6rem;width:1rem;height:1rem;pointer-events:none}
.fhmp-study #study-language-picker {
  appearance:none;min-width:0;width:100%;height:var(--fhmp-header-control-height);padding:.45rem 1.85rem .45rem .7rem;
  border:1px solid #abbce5;border-radius:.55rem;font:inherit;background-color:#344982;background-position:right .6rem center;color:#fff;
}
.fhmp-header-controls .study-episode-search-control {height:var(--fhmp-header-control-height);padding-inline-end:.8rem}
.fhmp-header-controls .study-episode-results-panel {color:var(--navy)}
.fhmp-header-actions {display:flex;gap:.5rem}
.fhmp-study .fhmp-header-actions .fhmp-header-icon {
  display:grid;place-items:center;width:var(--fhmp-header-control-height);height:var(--fhmp-header-control-height);
  padding:0;background:#ffffff0a;border:1px solid #a5b7dfaa;color:#fff;
}
.fhmp-study .fhmp-header-actions .fhmp-header-icon:hover {background:#ffffff26}
.fhmp-header-icon svg {
  width:1.55rem;height:1.55rem;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;
}
.fhmp-study .fhmp-header-actions .fhmp-header-icon:focus-visible,
.fhmp-study #study-language-picker:focus-visible,
.fhmp-lesson-controls:has(select:focus-visible) {outline:2px solid #fff;outline-offset:3px}
@media (max-width:1199px) {
  .fhmp-study .study-header-inner {grid-template-columns:minmax(0,1fr)}
  .fhmp-header-title {width:min(30rem,100%)}
}
@media (max-width:820px) {
  .fhmp-header-controls {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .fhmp-header-actions {justify-self:end}
}
@media (max-width:600px) {
  .fhmp-study .study-header-inner {padding-block:1rem;gap:.85rem}
  .fhmp-header-controls {grid-template-columns:minmax(0,1fr) max-content}
  .fhmp-header-controls :is(.study-episode-picker,.study-episode-search) {grid-column:1/-1}
}

.fhmp-study .fhmp-calendar {margin:auto;width:min(94vw,30rem);max-height:90dvh}
.fhmp-calendar-month {display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:.7rem 0 .35rem}
.fhmp-calendar-month h3 {margin:0;text-align:center}
.fhmp-calendar-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.2rem;text-align:center}
.fhmp-calendar-grid[aria-hidden] {color:var(--muted);font-size:.8rem}
.fhmp-study .fhmp-calendar-grid button {position:relative;min-height:40px;padding:.35rem .1rem}
.fhmp-study .fhmp-calendar-grid button[aria-pressed="true"] {background:var(--navy);color:#fff}
.fhmp-calendar-grid button.has-items::after {
  content:"";position:absolute;bottom:.15rem;left:calc(50% - .16rem);width:.32rem;height:.32rem;border-radius:50%;background:var(--gold);
}
.fhmp-calendar [data-calendar-date] {margin:.85rem 0 .3rem}
.fhmp-calendar-items {max-height:7rem;overflow:auto;padding-inline-start:1.25rem;overflow-wrap:anywhere}
.fhmp-calendar [data-calendar-form],.fhmp-calendar-moderation {border-top:1px solid var(--border);padding-top:.7rem}
.fhmp-calendar-moderation h3 {margin:0 0 .35rem}
.fhmp-calendar-moderation ul {max-height:11rem;overflow:auto;list-style:none;margin:.35rem 0;padding:.3rem}
.fhmp-calendar-moderation ul:empty {display:none}
.fhmp-calendar-moderation li {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.55rem;padding:.5rem 0;overflow-wrap:anywhere}
.fhmp-calendar-moderation li + li {border-top:1px solid var(--border)}
.fhmp-calendar-moderation li > div:first-child > div {font-size:.9rem;color:var(--muted)}
.fhmp-calendar-moderation select {max-width:100%;min-height:36px;margin-top:.3rem}
.fhmp-calendar-actions {display:flex;gap:.35rem}
.fhmp-study .fhmp-calendar-actions button {display:grid;place-items:center;width:44px;height:44px;padding:0}
.fhmp-study .fhmp-calendar-actions button:focus-visible {outline:2px solid var(--navy);outline-offset:2px}
.fhmp-study .fhmp-calendar-actions .fhmp-calendar-approve {color:#19562f;background:#e8f4eb;border-color:#8ab59a}
.fhmp-study .fhmp-calendar-actions .fhmp-calendar-reject {color:#8b2538;background:#faebee;border-color:#d5a0ab}
.fhmp-study .fhmp-calendar-actions button:disabled {opacity:.55}
.fhmp-calendar-actions svg {width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fhmp-calendar-moderation [role="status"]:empty {display:none}
.fhmp-study .study-dialog .fhmp-ward-choice {display:flex;align-items:flex-start;gap:.45rem}
.fhmp-study .study-dialog .fhmp-ward-choice[hidden] {display:none}
.fhmp-study .study-dialog .fhmp-ward-choice input {width:auto;flex:0 0 auto;margin:.25em 0 0}
.fhmp-ward-access {border-top:1px solid var(--border);margin-top:1rem;padding-top:.7rem}
.fhmp-ward-access h3 {margin:0 0 .45rem}
.fhmp-study #study-account :is([data-register],[data-verify]) {
  border-top:1px solid var(--border);padding-top:1rem;margin-top:1rem;
}
.fhmp-study #study-account :is([data-register],[data-verify]) .study-cta {justify-self:start}
@media (min-width:901px) {
  .fhmp-study .study-grid:not([data-expanded]),.fhmp-study .study-grid[data-expanded=""] {
    grid-template-columns:var(--study-columns,minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr));
  }
  .fhmp-study .study-grid:is([data-expanded="scriptures"],[data-expanded="manual"],[data-expanded="episode"]) {
    grid-template-columns:minmax(0,1fr);
  }
  .fhmp-study .study-grid[data-expanded="scriptures"] > .study-panel:not(.study-scriptures),
  .fhmp-study .study-grid[data-expanded="manual"] > .study-panel:not(.study-manual),
  .fhmp-study .study-grid[data-expanded="episode"] > .study-panel:not(.study-episode) {display:none}
  .fhmp-study .study-scriptures[data-custom-height="true"] > .study-panel-content > .study-panel-inner {
    display:flex;flex-direction:column;height:100%;min-height:0;
  }
  .fhmp-study .study-scriptures[data-custom-height="true"] .fhmp-scripture-frame {flex:1;min-height:0;height:auto}
  .fhmp-study .study-grid[data-expanded="episode"] .study-player {max-width:56rem;margin-inline:auto}
}
@media (max-width:900px) {
  .fhmp-study .study-grid[data-mobile-panel="scriptures"] .study-scriptures {display:block}
}

html:has(.fhmp-notebook-dock) {scroll-padding-bottom:var(--fhmp-dock-height,4rem)}
body:has(.fhmp-notebook-dock) {padding-bottom:var(--fhmp-dock-height,4rem)}
.fhmp-study .fhmp-notebook-dock {
  position:fixed;inset:auto 0 0;z-index:1000;
  display:flex;flex-direction:column;
  max-height:45vh;max-height:45dvh;
  padding-bottom:env(safe-area-inset-bottom);
  border:0;border-top:1px solid #001a5b40;border-radius:0;
  box-shadow:0 -5px 20px #001a5b20;
}
.fhmp-notebook-dock > .study-panel-heading {
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"title actions view";
  flex:none;gap:.45rem .8rem;padding:.45rem clamp(.7rem,2vw,2rem);
  background:var(--navy);color:#fff;
}
.fhmp-study .fhmp-notebook-dock .study-panel-heading h2 {grid-area:title;margin:0;color:#fff}
.fhmp-notebook-dock .study-notebook-actions {grid-area:actions;display:flex;gap:.45rem}
.fhmp-study .fhmp-notebook-dock .study-notebook-actions button {padding:.42rem .65rem}
.fhmp-notebook-view {grid-area:view;display:flex;gap:.4rem}
.fhmp-study .fhmp-notebook-view button {
  padding:.4rem .65rem;background:transparent;color:#fff;border-color:#ffffff70;white-space:nowrap;
}
.fhmp-notebook-dock > .study-panel-inner {
  display:block;min-height:0;max-height:13rem;
  max-height:min(13rem,26dvh);padding:.5rem clamp(.7rem,2vw,2rem);
  overflow:auto;overscroll-behavior:contain;
}
.fhmp-notebook-tools {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.45rem}
.fhmp-notebook-dock .study-notes {max-height:none;overflow:visible}
.fhmp-study .fhmp-notebook-fullscreen {
  position:fixed;inset:0;margin:0;padding:0;border:0;
  width:100%;height:100%;max-width:none;max-height:none;
  background:var(--paper);color:var(--navy);
}
.fhmp-study .fhmp-notebook-fullscreen .fhmp-notebook-dock {
  position:static;height:100%;max-height:none;border:0;box-shadow:none;
}
.fhmp-notebook-fullscreen .fhmp-notebook-dock > .study-panel-inner {flex:1;max-height:none}
.fhmp-notebook-fullscreen [data-notebook-toggle] {display:none}
@media (max-width:540px) {
  .fhmp-notebook-dock > .study-panel-heading {
    grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title view";
  }
  .fhmp-notebook-dock > .study-panel-heading:has(.study-notebook-actions:not([hidden])) {
    grid-template-areas:"title view" "actions actions";
  }
  .fhmp-notebook-dock .study-notebook-actions button {flex:1}
}

.fhmp-calendar-edit[hidden],.fhmp-calendar [data-calendar-manage-status]:empty,.fhmp-calendar [data-calendar-edit-status]:empty {display:none}
.fhmp-calendar-edit {border-top:1px solid var(--border);padding-top:.7rem}
.fhmp-calendar-item-controls {display:flex;flex-wrap:wrap;gap:.4rem}
.fhmp-calendar-items .fhmp-calendar-item-controls {margin:.3rem 0 .65rem}
.fhmp-calendar-items .fhmp-calendar-item-controls span {width:100%}
.fhmp-calendar-items .fhmp-calendar-item-controls button {min-height:36px}

/* Clip the fixed-height site banner in the external Gospel Library reader. */
.fhmp-study .fhmp-reader-embed {
  height:clamp(26rem,68vh,48rem);
  overflow:clip;
  border:1px solid var(--border);
  border-radius:.55rem;
  background:var(--paper);
}
.fhmp-study .fhmp-reader-embed-official {--church-banner-height:76px}
.fhmp-study .fhmp-reader-embed .study-manual-frame {
  border:0;
  border-radius:0;
  height:calc(100% + var(--church-banner-height, 0px));
  margin-block-start:calc(-1 * var(--church-banner-height, 0px));
}
@media(min-width:901px){
  .fhmp-study :is(.study-manual,.study-scriptures)[data-custom-height="true"] .fhmp-reader-embed {
    flex:1;
    min-height:0;
    height:auto;
  }
}
