/* ==========================================================================
   template.css — cover templates added after the original set
   Currently: Midnight, Gazette, Heritage, Current, Bevel, Orbit, Tidal.  Loaded right after style.css (see
   covermaker.html), so cascade order is unchanged. New templates go at the
   END of this file; see TEMPLATE-CONVENTION.md. When this file gets large,
   start template-2.css the same way and link it after this one.
   ========================================================================== */

/* ==========================================================================
   Edge bleed fix
   The paper is 210mm x 297mm (793.688 x 1122.52px). At many zoom levels the
   browser snaps a full-size child to a whole pixel and leaves a hairline of
   the white paper showing at the right / bottom edge, which is very visible on
   templates that paint colour right up to the edge (Midnight's bottom bar,
   Orbit and Bevel's art, Gazette's newsprint ...). Same trick Dusk already
   uses: make the template root 2px bigger; the paper clips the overflow.
   Add any new full-bleed template id here.
   ========================================================================== */
#paper > .tpl-midnight,
#paper > .tpl-newspaper,
#paper > .tpl-bevel,
#paper > .tpl-orbit,
#paper > .tpl-brutalist,
#paper > .tpl-current,
#paper > .tpl-voltalic,
#paper > .tpl-spring,
#paper > .tpl-tidal {
  width: calc(100% + 2px);
  height: calc(100% + 2px);
}

/* ==========================================================================
   Midnight ("midnight") — top hero banner
   Full-bleed hero in the palette's darkest colour with two soft circles, a
   solid accent tag and a big title; light meta row, Submitted By | To split,
   centred date over a thin footer bar. Colours come from the inline
   --nb-* variables set by renderMidnight(). Fonts are driven by the Cover
   font picker (see "Cover fonts" in style.css), so none are set here.
   ========================================================================== */

.tpl-midnight {
  --nb-line: #d8dce5;
  --nb-mute: #7a8396;
  --nb-text: #3f4a5e;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1b2433;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.tpl-midnight * {
  box-sizing: border-box;
}

.tpl-midnight .nb-hero {
  position: relative;
  flex: none;
  min-height: 430px;
  padding: 56px 64px 52px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--nb-dark);
  color: #fff;
}

.tpl-midnight .nb-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.tpl-midnight .nb-circle-lg {
  width: 460px;
  height: 460px;
  top: -190px;
  right: -130px;
  background: rgba(255, 255, 255, 0.06);
}

.tpl-midnight .nb-circle-sm {
  width: 250px;
  height: 250px;
  top: 78px;
  right: -84px;
  background: var(--nb-circle);
}

.tpl-midnight .nb-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 80%;
}

.tpl-midnight .nb-logo {
  flex: none;
  width: 68px;
  height: 68px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpl-midnight .nb-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tpl-midnight .nb-brand-txt {
  min-width: 0;
}

.tpl-midnight .nb-uni {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
  color: #fff;
  overflow-wrap: anywhere;
}

.tpl-midnight .nb-uni-md {
  font-size: 22px;
}

.tpl-midnight .nb-uni-sm {
  font-size: 19px;
}

.tpl-midnight .nb-dept {
  margin-top: 5px;
  font-size: 14px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, 0.74);
}

.tpl-midnight .nb-tag-row {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 34px;
}

.tpl-midnight .nb-tag {
  display: inline-block;
  padding: 7px 18px;
  background: var(--nb-tag);
  color: var(--nb-tag-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tpl-midnight .nb-title {
  position: relative;
  z-index: 1;
  max-width: 92%;
  margin-top: 20px;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  overflow-wrap: anywhere;
}

.tpl-midnight .nb-title-md {
  font-size: 38px;
}

.tpl-midnight .nb-title-sm {
  font-size: 30px;
}

.tpl-midnight .nb-title.nb-ph {
  font-style: italic;
  opacity: .55;
}

.tpl-midnight .nb-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 36px 64px 0;
  display: flex;
  flex-direction: column;
}

.tpl-midnight .nb-meta {
  display: flex;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--nb-line);
}

.tpl-midnight .nb-cell {
  flex: 1 1 0;
  min-width: 0;
}

.tpl-midnight .nb-cell:first-child {
  flex: 2.2 1 0;
}

.tpl-midnight .nb-lbl {
  margin-bottom: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nb-mute);
}

.tpl-midnight .nb-val {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--nb-dark);
  overflow-wrap: anywhere;
}

.tpl-midnight .nb-val.nb-ph {
  font-weight: 500;
  font-style: italic;
  color: #9aa3b5;
}

.tpl-midnight .nb-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 30px 0 0;
}

/* single covers: sit the Submitted By | To block in the middle of the free space */
.tpl-midnight:not(.nb-group) .nb-parties {
  margin: auto 0;
}

.tpl-midnight .nb-party {
  min-width: 0;
}

.tpl-midnight .nb-party:first-child {
  padding-right: 34px;
  border-right: 1px solid var(--nb-line);
}

.tpl-midnight .nb-party:last-child {
  padding-left: 34px;
}

.tpl-midnight .nb-lbl-party {
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--nb-tag);
  color: var(--nb-dark);
}

.tpl-midnight .nb-count {
  margin-left: 8px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--nb-mute);
}

.tpl-midnight .nb-name {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--nb-dark);
  overflow-wrap: anywhere;
}

.tpl-midnight .nb-sub {
  margin-top: 5px;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--nb-text);
  overflow-wrap: anywhere;
}

.tpl-midnight .nb-dot {
  margin: 0 3px;
  color: var(--nb-tag);
  font-weight: 700;
}

/* group: name block, roster, then Submitted To underneath */
.tpl-midnight .nb-by-block {
  margin-top: 28px;
}

.tpl-midnight .nb-roster {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 30px;
}

.tpl-midnight .nb-roster-2 {
  grid-template-columns: 1fr 1fr;
}

.tpl-midnight .nb-mem {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 8px;
  border-bottom: 1px solid var(--nb-line);
}

.tpl-midnight .nb-mem-no {
  flex: none;
  min-width: 22px;
  padding-top: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--nb-mute);
}

.tpl-midnight .nb-mem-main {
  min-width: 0;
}

.tpl-midnight .nb-mem-name {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--nb-dark);
  overflow-wrap: anywhere;
}

.tpl-midnight .nb-mem-sub {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--nb-text);
}

.tpl-midnight .nb-mem-lead {
  background: var(--nb-lead-bg);
}

.tpl-midnight .nb-mem-lead .nb-mem-name,
.tpl-midnight .nb-mem-lead .nb-mem-no {
  color: var(--nb-lead-ink);
}

.tpl-midnight .nb-to-below {
  margin-top: 22px;
}

.tpl-midnight.nb-group .nb-meta {
  padding-bottom: 18px;
}

.tpl-midnight.nb-many .nb-hero {
  min-height: 330px;
  padding-top: 44px;
  padding-bottom: 40px;
}

.tpl-midnight.nb-many .nb-by-block {
  margin-top: 20px;
}

.tpl-midnight.nb-many .nb-mem {
  padding: 6px 8px;
}

.tpl-midnight.nb-many .nb-mem-name {
  font-size: 14.5px;
}

.tpl-midnight.nb-many .nb-mem-sub {
  font-size: 12px;
}

.tpl-midnight.nb-many .nb-to-below {
  margin-top: 16px;
}

.tpl-midnight .nb-foot {
  flex: none;
  padding: 0 64px 22px;
  text-align: center;
}

.tpl-midnight .nb-rule {
  display: block;
  height: 1px;
  margin-bottom: 14px;
  background: var(--nb-line);
}

.tpl-midnight .nb-date {
  font-size: 14px;
  line-height: 1.5;
  color: var(--nb-text);
}

.tpl-midnight .nb-date-lbl {
  font-weight: 700;
  color: var(--nb-dark);
}

.tpl-midnight .nb-bar {
  flex: none;
  height: 12px; /* 10px visible: the root is 2px taller than the page (edge bleed fix) */
  background: var(--nb-dark);
}

/* Bangla: no tracking / forced capitals (they break conjuncts) */
.tpl-midnight.nb-bn * {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.tpl-midnight.nb-bn .nb-lbl {
  font-size: 12.5px;
}

.tpl-midnight.nb-bn .nb-title {
  line-height: 1.3;
}

/* ==========================================================================
   Gazette ("newspaper") — broadsheet on cream newsprint
   Kicker + logo over a heavy rule, institution as a big serif masthead,
   double rule + dateline, red "Featured" kicker, headline, italic standfirst,
   three ruled columns and a colophon footer. Accent = palette primary
   (--np-accent); newsprint / ink / slate are fixed.
   ========================================================================== */

.tpl-newspaper {
  --np-paper: #f6f1e3;
  --np-ink: #17140f;
  --np-slate: #4f5663;
  --np-rule: #b9b19c;
  --np-serif: Georgia, 'Times New Roman', serif;
  --np-sans: Arial, Helvetica, sans-serif;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 44px 56px 34px;
  background: var(--np-paper);
  color: var(--np-ink);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.tpl-newspaper * {
  box-sizing: border-box;
}

.tpl-newspaper .np-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding-bottom: 12px;
  border-bottom: 4px solid var(--np-ink);
}

.tpl-newspaper .np-edition {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--np-slate);
}

.tpl-newspaper .np-logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

.tpl-newspaper .np-masthead {
  flex: none;
  padding: 22px 0 12px;
  text-align: center;
}

.tpl-newspaper .np-uni {
  text-align: center;
}

.tpl-newspaper .np-uni-sm {
  font-size: 30px;
}

.tpl-newspaper .np-uni-xs {
  font-size: 26px;
}

.tpl-newspaper .np-sub {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--np-slate);
}

.tpl-newspaper .np-dbl {
  flex: none;
  height: 7px;
  border-top: 3px solid var(--np-ink);
  border-bottom: 1px solid var(--np-ink);
}

.tpl-newspaper .np-meta {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--np-ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--np-slate);
}

.tpl-newspaper .np-meta-c {
  color: var(--np-accent, #9b2218);
  font-weight: 700;
  text-align: center;
}

.tpl-newspaper .np-meta-r {
  text-align: right;
}

.tpl-newspaper .np-feature {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 0 26px;
}

.tpl-newspaper .np-kicker {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--np-accent, #9b2218);
}

.tpl-newspaper .np-title {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--np-ink);
  overflow-wrap: anywhere;
}

.tpl-newspaper .np-title-md {
  font-size: 44px;
}

.tpl-newspaper .np-title-sm {
  font-size: 34px;
}

.tpl-newspaper .np-title.np-ph,
.tpl-newspaper .np-standfirst.np-ph {
  font-style: italic;
  opacity: .5;
}

.tpl-newspaper .np-standfirst {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--np-rule);
  font-size: 20px;
  font-style: italic;
  line-height: 1.35;
  color: var(--np-slate);
}

.tpl-newspaper .np-cols {
  flex: none;
  display: grid;
  grid-template-columns: .85fr 1.1fr 1.1fr;
  padding-top: 16px;
  border-top: 2px solid var(--np-ink);
}

.tpl-newspaper .np-col {
  min-width: 0;
  padding: 0 20px;
}

.tpl-newspaper .np-col:first-child {
  padding-left: 0;
}

.tpl-newspaper .np-col:last-child {
  padding-right: 0;
}

.tpl-newspaper .np-col + .np-col {
  border-left: 1px solid var(--np-rule);
}

.tpl-newspaper .np-lbl {
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--np-accent, #9b2218);
}

.tpl-newspaper .np-item {
  margin-bottom: 12px;
}

.tpl-newspaper .np-val {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tpl-newspaper .np-name {
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tpl-newspaper .np-line {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--np-slate);
  overflow-wrap: anywhere;
}

.tpl-newspaper .np-count {
  font-weight: 700;
  color: var(--np-ink);
}

/* group roster table */
.tpl-newspaper .np-team {
  flex: none;
  margin-top: 20px;
  border-top: 2px solid var(--np-ink);
}

.tpl-newspaper .np-thead,
.tpl-newspaper .np-trow {
  display: grid;
  grid-template-columns: 48px 1fr 150px 90px;
  align-items: baseline;
  gap: 10px;
}

.tpl-newspaper .np-thead {
  padding: 8px 0;
  border-bottom: 1px solid var(--np-ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--np-accent, #9b2218);
}

.tpl-newspaper .np-trow {
  padding: 7px 0;
  border-bottom: 1px dotted var(--np-rule);
  font-size: 14.5px;
  line-height: 1.3;
}

.tpl-newspaper .np-tno {
  font-size: 12px;
  font-weight: 700;
  color: var(--np-slate);
}

.tpl-newspaper .np-tname {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tpl-newspaper .np-tid,
.tpl-newspaper .np-troll {
  font-size: 13.5px;
  color: var(--np-slate);
}

.tpl-newspaper .np-lead .np-tname {
  color: var(--np-accent, #9b2218);
}

.tpl-newspaper .np-lead .np-tname::after {
  content: "\2605";
  margin-left: 7px;
  font-size: 12px;
}

.tpl-newspaper .np-trow-empty {
  grid-template-columns: 1fr;
  font-style: italic;
  color: var(--np-slate);
}

.tpl-newspaper .np-tight .np-trow {
  padding: 5px 0;
  font-size: 13px;
}

.tpl-newspaper .np-tight .np-tid,
.tpl-newspaper .np-tight .np-troll {
  font-size: 12px;
}

.tpl-newspaper .np-foot {
  flex: none;
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--np-ink);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--np-slate);
}

.tpl-newspaper.np-group .np-feature {
  padding: 22px 0 18px;
}

.tpl-newspaper.np-group .np-title {
  font-size: 40px;
}

.tpl-newspaper.np-bn * {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.tpl-newspaper.np-bn .np-title {
  line-height: 1.3;
}

.tpl-newspaper.np-bn .np-lbl {
  font-size: 12.5px;
}

/* ==========================================================================
   Heritage ("heritage") — framed ceremonial cover
   Double frame (palette primary outer line, palette accent hairline inside)
   with accent corner brackets, centred logo / institution, diamond divider,
   spaced "Cover Page" eyebrow over a huge document-type word, ruled course
   block, tinted number + title box, Submitted By / To columns, date at foot.
   Colours come from the inline --hr-* variables set by renderHeritage().
   ========================================================================== */

.tpl-heritage {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  color: #1d2230;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.tpl-heritage * {
  box-sizing: border-box;
}

.tpl-heritage .hr-frame {
  position: absolute;
  inset: 26px;
  border: 3px solid var(--hr-primary);
  pointer-events: none;
}

.tpl-heritage .hr-frame-in {
  position: absolute;
  inset: 38px;
  border: 1px solid var(--hr-accent);
  pointer-events: none;
}

.tpl-heritage .hr-c {
  position: absolute;
  width: 36px;
  height: 36px;
  pointer-events: none;
}

.tpl-heritage .hr-c-tl {
  top: 18px;
  left: 18px;
  border-top: 4px solid var(--hr-accent);
  border-left: 4px solid var(--hr-accent);
}

.tpl-heritage .hr-c-tr {
  top: 18px;
  right: 18px;
  border-top: 4px solid var(--hr-accent);
  border-right: 4px solid var(--hr-accent);
}

.tpl-heritage .hr-c-bl {
  bottom: 18px;
  left: 18px;
  border-bottom: 4px solid var(--hr-accent);
  border-left: 4px solid var(--hr-accent);
}

.tpl-heritage .hr-c-br {
  bottom: 18px;
  right: 18px;
  border-bottom: 4px solid var(--hr-accent);
  border-right: 4px solid var(--hr-accent);
}

.tpl-heritage .hr-body {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 72px 88px 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 14px;
  text-align: center;
}

.tpl-heritage .hr-head {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.tpl-heritage .hr-logo {
  margin-bottom: 12px;
}

.tpl-heritage .hr-logo-img {
  display: block;
  height: 80px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.tpl-heritage .hr-uni {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--hr-primary);
  overflow-wrap: anywhere;
}

.tpl-heritage .hr-uni-md {
  font-size: 26px;
}

.tpl-heritage .hr-uni-sm {
  font-size: 22px;
}

.tpl-heritage .hr-uni-xs {
  font-size: 19px;
}

.tpl-heritage .hr-dept {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hr-accent);
}

.tpl-heritage .hr-divider {
  flex: none;
  width: 64%;
  margin: 6px 0 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tpl-heritage .hr-divider span {
  flex: 1;
  height: 1px;
  background: var(--hr-accent);
}

.tpl-heritage .hr-divider i {
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--hr-accent);
  transform: rotate(45deg);
}

.tpl-heritage .hr-eyebrow {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--hr-accent);
}

.tpl-heritage .hr-word {
  flex: none;
  margin: 0;
  font-size: 68px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--hr-primary);
}

.tpl-heritage .hr-word-md {
  font-size: 52px;
}

.tpl-heritage .hr-word-sm {
  font-size: 42px;
}

.tpl-heritage .hr-course {
  flex: none;
  margin-top: auto;
  width: 100%;
  padding: 16px 0;
  border-top: 1px solid var(--hr-tint-line);
  border-bottom: 1px solid var(--hr-tint-line);
}

.tpl-heritage .hr-lbl {
  margin-bottom: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hr-accent);
}

.tpl-heritage .hr-val {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tpl-heritage .hr-val-lg {
  font-size: 22px;
  color: var(--hr-primary);
}

.tpl-heritage .hr-ph {
  font-style: italic;
  font-weight: 500;
  opacity: .5;
}

.tpl-heritage .hr-items {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.tpl-heritage .hr-items-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 12px;
}

.tpl-heritage .hr-box {
  flex: none;
  width: 100%;
  margin-top: auto;
  padding: 20px 26px 22px;
  background: var(--hr-tint);
  border: 1px solid var(--hr-tint-line);
}

.tpl-heritage .hr-box-eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hr-accent);
}

.tpl-heritage .hr-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hr-primary);
  overflow-wrap: anywhere;
}

.tpl-heritage .hr-title-md {
  font-size: 24px;
}

.tpl-heritage .hr-title-sm {
  font-size: 20px;
}

.tpl-heritage .hr-parties {
  flex: none;
  width: 100%;
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: left;
}

.tpl-heritage .hr-col {
  min-width: 0;
  padding: 0 22px;
}

.tpl-heritage .hr-col-by {
  padding-left: 0;
  border-right: 1px solid var(--hr-tint-line);
}

.tpl-heritage .hr-col-to {
  padding-right: 0;
}

.tpl-heritage .hr-party-h {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hr-accent);
}

.tpl-heritage .hr-name {
  margin-bottom: 5px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--hr-primary);
  overflow-wrap: anywhere;
}

.tpl-heritage .hr-line {
  font-size: 13.5px;
  line-height: 1.5;
  color: #454c5b;
  overflow-wrap: anywhere;
}

.tpl-heritage .hr-pair-sep {
  margin: 0 8px;
  color: var(--hr-accent);
}

.tpl-heritage .hr-count {
  font-weight: 700;
}

.tpl-heritage .hr-team {
  flex: none;
  width: 100%;
  margin-top: 18px;
  padding-top: 14px;
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--hr-tint-line);
  text-align: center;
}

.tpl-heritage .hr-mem {
  min-width: 0;
}

.tpl-heritage .hr-mem-no {
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--hr-accent);
}

.tpl-heritage .hr-mem-name {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--hr-primary);
  overflow-wrap: anywhere;
}

.tpl-heritage .hr-mem-sub {
  font-size: 12.5px;
  line-height: 1.4;
  color: #454c5b;
}

.tpl-heritage .hr-lead .hr-mem-name,
.tpl-heritage .hr-lead .hr-mem-no {
  color: var(--hr-accent);
}

.tpl-heritage .hr-foot {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 62px;
  text-align: center;
  font-size: 13.5px;
  letter-spacing: .08em;
  color: #454c5b;
}

.tpl-heritage .hr-foot-lbl {
  font-weight: 700;
  color: var(--hr-accent);
}

.tpl-heritage.hr-group .hr-word {
  font-size: 54px;
}

.tpl-heritage.hr-group .hr-body {
  row-gap: 10px;
}

.tpl-heritage.hr-bn * {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.tpl-heritage.hr-bn .hr-title,
.tpl-heritage.hr-bn .hr-word {
  line-height: 1.3;
}

.tpl-heritage.hr-bn .hr-lbl,
.tpl-heritage.hr-bn .hr-party-h {
  font-size: 12.5px;
}

/* ==========================================================================
   Current ("current") — clean annual-report cover
   Soft spine edge, thin accent eyebrow over a bold institution name, a light
   document-type word beside a big accent number, quiet course line, grey wave
   lines across the lower half, bullet lists bottom-right.
   English text is locked to the sans (Inter): the look depends on its
   light / bold weights, so it ignores the Cover font picker on purpose.
   Delete the first rule below to let the picker drive this template instead.
   ========================================================================== */

.tpl-current {
    --cm-ink: #23263a;
    --cm-mute: #6a7083;
    --cm-rule: #d9dbe1;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    padding: 96px 86px 0 92px;
    background: #fff;
    color: var(--cm-ink);
    text-align: left;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.tpl-current * {
    box-sizing: border-box;
}

.cm-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 46px;
    background: linear-gradient(90deg, #ececef 0%, #f6f6f8 62%, #fff 100%);
    border-right: 1px solid #e0e1e6;
}

.cm-waves {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .5;
}

.cm-body {
    position: relative;
}

.cm-logo {
    position: absolute;
    top: 88px;
    right: 86px;
}

.cm-logo-img {
    display: block;
    max-height: 64px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Header */
.cm-head {
    max-width: 500px;
}

.cm-eyebrow {
    font-size: 25px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--cm-accent);
    overflow-wrap: anywhere;
}

.cm-uni {
    margin-top: 6px;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--cm-ink);
    overflow-wrap: anywhere;
}

.cm-eb-sm {
    font-size: 21px;
}

.cm-eb-xs {
    font-size: 17px;
    letter-spacing: .05em;
}

.cm-uni-sm {
    font-size: 26px;
}

.cm-uni-xs {
    font-size: 21px;
}

.cm-rule {
    width: 190px;
    height: 1.5px;
    margin: 20px 0 12px;
    background: var(--cm-ink);
}

.cm-kicker {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--cm-mute);
}

/* Hero: light doc-type word | big accent number */
.cm-hero {
    display: flex;
    align-items: center;
    margin-top: 78px;
}

.cm-word {
    font-size: 31px;
    font-weight: 300;
    line-height: 1.22;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--cm-ink);
}

.cm-vr {
    align-self: stretch;
    width: 1.5px;
    margin: 2px 26px;
    background: #8f93a0;
}

.cm-num {
    font-size: 104px;
    font-weight: 700;
    line-height: .95;
    letter-spacing: -.01em;
    color: var(--cm-accent);
    overflow-wrap: anywhere;
}

.cm-num-md {
    font-size: 74px;
}

.cm-num-sm {
    font-size: 48px;
}

.cm-ph {
    opacity: .45;
}

.cm-title {
    margin-top: 34px;
    max-width: 540px;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--cm-ink);
    overflow-wrap: anywhere;
}

.cm-title-md {
    font-size: 21px;
}

.cm-title-sm {
    font-size: 17.5px;
}

.cm-info {
    margin-top: 16px;
    max-width: 540px;
}

.cm-course {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--cm-ink);
}

.cm-meta {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--cm-mute);
}

.cm-dot {
    margin: 0 8px;
    color: var(--cm-accent);
}

/* Bottom-right lists (sit on a soft white plate so the waves never hurt legibility) */
.cm-bottom {
    position: absolute;
    right: 62px;
    bottom: 98px;
    width: 352px;
    padding: 18px 24px 20px;
    border-radius: 4px;
}

.cm-list+.cm-list {
    margin-top: 22px;
}

.cm-list-h {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cm-accent);
}

.cm-list ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.cm-list li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--cm-ink);
    overflow-wrap: anywhere;
}

.cm-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cm-ink);
}

.cm-list li.cm-strong {
    font-weight: 700;
}

.cm-list li.cm-accent {
    color: var(--cm-accent);
    font-weight: 600;
}

.cm-mem-name {
    display: block;
    font-weight: 700;
}

.cm-li-sub {
    display: block;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--cm-mute);
}

.cm-lead .cm-mem-name {
    color: var(--cm-accent);
}

.cm-foot {
    position: absolute;
    right: 86px;
    bottom: 52px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--cm-ink);
}

/* Group covers carry up to four members, so the page rhythm is a little tighter */
.cm-group {
    padding-top: 84px;
}

.cm-group .cm-hero {
    margin-top: 56px;
}

.cm-group .cm-num {
    font-size: 92px;
}

.cm-group .cm-title {
    margin-top: 26px;
}

/* Group assignment: the bottom becomes a full-width band —
   Submitted By (group) on the left axis, Submitted To on the right,
   and the members (max 4) as a ruled strip of columns beneath. */
.cm-bottom-g {
    left: 92px;
    right: 86px;
    bottom: 100px;
    width: auto;
    padding: 0;
}

.cm-g-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 44px;
}

.cm-g-top .cm-list+.cm-list {
    margin-top: 0;
}

.cm-team {
    display: grid;
    column-gap: 20px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--cm-rule);
}

.cm-tm {
    position: relative;
    padding-left: 14px;
    min-width: 0;
}

.cm-tm::before {
    content: "";
    position: absolute;
    left: 1px;
    top: .6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cm-ink);
}

.cm-tm-name {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--cm-ink);
    overflow-wrap: anywhere;
}

.cm-tm-sub {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--cm-mute);
    overflow-wrap: anywhere;
}

.cm-tm.cm-lead .cm-tm-name,
.cm-tm.cm-lead::before {
    color: var(--cm-accent);
    background: none;
}

.cm-tm.cm-lead::before {
    background: var(--cm-accent);
}

/* Bangla: no caps / wide tracking; user-selected Bangla font */
.tpl-current.cm-bn .cm-eyebrow,
.tpl-current.cm-bn .cm-uni,
.tpl-current.cm-bn .cm-word,
.tpl-current.cm-bn .cm-kicker {
    text-transform: none;
    letter-spacing: 0;
}

.tpl-current.cm-bn .cm-eyebrow {
    font-size: 22px;
    line-height: 1.35;
    font-weight: 400;
}

.tpl-current.cm-bn .cm-eb-sm {
    font-size: 20px;
}

.tpl-current.cm-bn .cm-eb-xs {
    font-size: 18px;
    letter-spacing: 0;
}

.tpl-current.cm-bn .cm-uni {
    font-size: 31px;
    line-height: 1.3;
}

.tpl-current.cm-bn .cm-uni-sm {
    font-size: 26px;
}

.tpl-current.cm-bn .cm-uni-xs {
    font-size: 22px;
}

.tpl-current.cm-bn .cm-kicker {
    font-size: 14.5px;
}

.tpl-current.cm-bn .cm-word {
    font-size: 30px;
    line-height: 1.35;
    font-weight: 400;
}

.tpl-current.cm-bn .cm-num {
    font-size: 92px;
    line-height: 1.1;
}

.tpl-current.cm-bn .cm-num-md {
    font-size: 66px;
}

.tpl-current.cm-bn .cm-num-sm {
    font-size: 44px;
}

.tpl-current.cm-bn .cm-title {
    font-size: 26px;
    line-height: 1.4;
}

.tpl-current.cm-bn .cm-title-md {
    font-size: 22px;
}

.tpl-current.cm-bn .cm-title-sm {
    font-size: 18.5px;
}

.tpl-current.cm-bn .cm-course {
    font-size: 16px;
}

.tpl-current.cm-bn .cm-meta {
    font-size: 14.5px;
}

.tpl-current.cm-bn .cm-list-h {
    font-size: 19px;
}

.tpl-current.cm-bn .cm-list li {
    font-size: 15px;
    line-height: 1.55;
}

.tpl-current.cm-bn .cm-li-sub {
    font-size: 13.5px;
}

.tpl-current.cm-bn .cm-tm-name {
    font-size: 15.5px;
    line-height: 1.45;
}

.tpl-current.cm-bn .cm-tm-sub {
    font-size: 13px;
}

.tpl-current.cm-bn .cm-foot {
    font-size: 14px;
    letter-spacing: 0;
}

.tpl-current.cm-bn.cm-group .cm-num {
    font-size: 80px;
}

/* Current: small text +1px */
.cm-kicker {
    font-size: 11.5px;
}

.cm-course {
    font-size: 15px;
}

.cm-meta {
    font-size: 13.5px;
}

.cm-list-h {
    font-size: 18px;
}

.cm-list li {
    font-size: 14px;
}

.cm-li-sub {
    font-size: 12.5px;
}

.cm-tm-name {
    font-size: 14.5px;
}

.cm-tm-sub {
    font-size: 12.5px;
}

.cm-foot {
    font-size: 13.5px;
}

.tpl-current.cm-bn .cm-kicker {
    font-size: 15.5px;
}

.tpl-current.cm-bn .cm-course {
    font-size: 17px;
}

.tpl-current.cm-bn .cm-meta {
    font-size: 15.5px;
}

.tpl-current.cm-bn .cm-list-h {
    font-size: 20px;
}

.tpl-current.cm-bn .cm-list li {
    font-size: 16px;
}

.tpl-current.cm-bn .cm-li-sub {
    font-size: 14.5px;
}

.tpl-current.cm-bn .cm-tm-name {
    font-size: 16.5px;
}

.tpl-current.cm-bn .cm-tm-sub {
    font-size: 14px;
}

.tpl-current.cm-bn .cm-foot {
    font-size: 15px;
}

/* ==========================================================================
   Bevel ("bevel") — bold angular cover
   Dark hero band with a bevelled corner + accent outline, accent stripe and
   grey bars on the left, white lower half with the lists and dates.
   English text is locked to Inter (the look depends on its heavy weights), so
   it ignores the Cover font picker; delete the first rule to let it follow it.
   ========================================================================== */

.tpl-bevel {
    --bv-dark: #1f2937;
    --bv-accent: #ee8b2b;
    --bv-lead: #b8651a;
    --bv-ink: #23263a;
    --bv-mute: #6a7083;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
    color: var(--bv-ink);
    text-align: left;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.tpl-bevel * {
    box-sizing: border-box;
}

.bv-art {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bv-ph {
    opacity: .45;
}

/* Brand: logo chip + university, top-left on the band */
.bv-brand {
    position: absolute;
    left: 92px;
    top: 70px;
    width: 330px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}

.bv-logo {
    flex: 0 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 6px 8px;
}

.bv-logo img {
    display: block;
    max-height: 50px;
    max-width: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.bv-brand-txt {
    min-width: 0;
}

.bv-uni {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    overflow-wrap: anywhere;
}

.bv-uni-sm {
    font-size: 15px;
}

.bv-uni-xs {
    font-size: 13px;
}

.bv-dept {
    margin-top: 5px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bv-accent);
    overflow-wrap: anywhere;
}

/* Hero: big document-type word, accent number, title, course line */
.bv-hero {
    position: absolute;
    right: 86px;
    top: 150px;
    width: 470px;
    text-align: right;
    color: #fff;
}

.bv-word {
    font-size: 50px;
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-top: 22px;
}

.bv-word-sm {
    font-size: 48px;
}

.bv-num {
    margin-top: 8px;
    font-size: 44px;
    font-weight: 700;
    line-height: .8;
    letter-spacing: .08em;
    color: var(--bv-accent);
    overflow-wrap: anywhere;
}

.bv-num-md {
    font-size: 36px;
}

.bv-num-sm {
    font-size: 26px;
}

.bv-title {
    position: relative;
    max-width: 310px;
    margin: 30px 0 0 auto;
    padding-top: 22px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, .96);
    overflow-wrap: anywhere;
}

.bv-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 3px;
    background: var(--bv-accent);
}

.bv-title-md {
    font-size: 17.5px;
}

.bv-title-sm {
    font-size: 15px;
}

.bv-info {
    max-width: 310px;
    margin: 26px 0 0 auto;
}

/* course + meta read as one quiet caption under the title, not two competing lines */
.bv-course {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .78);
    overflow-wrap: anywhere;
}

.bv-meta {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .5);
}

.bv-dot {
    margin: 0 7px;
    color: var(--bv-accent);
}

/* Lists: Submitted By / Submitted To, bottom-left on white */
.bv-bottom {
    position: absolute;
    left: 92px;
    right: 86px;
    bottom: 160px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 44px;
}

.bv-h {
    position: relative;
    margin-bottom: 12px;
    padding-bottom: 9px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--bv-dark);
}

.bv-h::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    background: var(--bv-accent);
}

.bv-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bv-col li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--bv-ink);
    overflow-wrap: anywhere;
}

.bv-col li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .62em;
    width: 5px;
    height: 5px;
    background: var(--bv-accent);
    transform: rotate(45deg);
}

.bv-col li.bv-strong {
    font-weight: 700;
    font-size: 16px;
}

.bv-col li.bv-lead {
    font-weight: 700;
    color: var(--bv-lead);
}

.bv-col li.bv-lead::before {
    background: var(--bv-lead);
}

.bv-mem {
    margin-top: 5px;
}

.bv-mem-name {
    display: block;
    font-weight: 700;
}

.bv-mem-sub {
    display: block;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--bv-mute);
}

/* Group: Submitted By with Submitted To stacked under it (left); Members as numbered cards in a 2-column grid (right) */
.tpl-bevel.bv-group .bv-bottom {
    bottom: 138px;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    grid-template-areas: "by mem" "to mem";
    grid-template-rows: auto 1fr;
    column-gap: 34px;
    row-gap: 18px;
}

.tpl-bevel.bv-group .bv-col-by {
    grid-area: by;
}

.tpl-bevel.bv-group .bv-col-mem {
    grid-area: mem;
    display: flex;
    flex-direction: column;
}

.tpl-bevel.bv-group .bv-col-to {
    grid-area: to;
}

.tpl-bevel.bv-group .bv-col-mem ul {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-rows: 1fr;
    gap: 10px;
}

.tpl-bevel.bv-group .bv-col-mem li.bv-mem {
    margin: 0;
    padding: 10px 12px 10px 14px;
    background: #f3f4f8;
    border-left: 3px solid var(--bv-accent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.tpl-bevel.bv-group .bv-col-mem li.bv-mem::before {
    display: none;
}

/* leader card: deeper accent edge + tinted name */
.tpl-bevel.bv-group .bv-col-mem li.bv-mem.bv-lead {
    border-left-color: var(--bv-lead);
    background: #eceef5;
}

.tpl-bevel.bv-group .bv-col-mem li.bv-mem.bv-lead .bv-mem-name {
    color: var(--bv-lead);
}

/* an odd last card (1 or 3 members) spans the full width instead of leaving a hole */
.tpl-bevel.bv-group .bv-col-mem li.bv-mem:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.bv-mem-no {
    display: block;
    margin-bottom: 3px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--bv-accent);
}

.tpl-bevel.bv-group .bv-col-mem li.bv-mem .bv-mem-name {
    font-size: 14.5px;
    line-height: 1.3;
}

/* Footer dates */
.bv-foot {
    position: absolute;
    left: 92px;
    right: 86px;
    bottom: 62px;
    padding-top: 14px;
    border-top: 1.5px solid var(--bv-accent);
    display: flex;
    flex-wrap: wrap;
    column-gap: 36px;
    row-gap: 4px;
    font-size: 13px;
    color: var(--bv-ink);
}

.bv-date-lbl {
    font-weight: 700;
    color: var(--bv-dark);
}

/* Bangla: no caps / wide tracking; user-selected Bangla font */
.tpl-bevel.bv-bn .bv-uni,
.tpl-bevel.bv-bn .bv-dept,
.tpl-bevel.bv-bn .bv-word,
.tpl-bevel.bv-bn .bv-h {
    text-transform: none;
    letter-spacing: 0;
}

.tpl-bevel.bv-bn .bv-uni {
    font-size: 19px;
    line-height: 1.35;
}

.tpl-bevel.bv-bn .bv-uni-sm {
    font-size: 17px;
}

.tpl-bevel.bv-bn .bv-uni-xs {
    font-size: 15px;
}

.tpl-bevel.bv-bn .bv-dept {
    font-size: 14px;
    font-weight: 500;
}

.tpl-bevel.bv-bn .bv-word {
    font-size: 48px;
    line-height: 1.3;
    font-weight: 700;
}

.tpl-bevel.bv-bn .bv-word-sm {
    font-size: 42px;
}

.tpl-bevel.bv-bn .bv-num {
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: .04em;
}

.tpl-bevel.bv-bn .bv-num-md {
    font-size: 34px;
}

.tpl-bevel.bv-bn .bv-num-sm {
    font-size: 24px;
}

.tpl-bevel.bv-bn .bv-title {
    font-size: 23px;
    line-height: 1.4;
}

.tpl-bevel.bv-bn .bv-title-md {
    font-size: 20px;
}

.tpl-bevel.bv-bn .bv-title-sm {
    font-size: 17px;
}

.tpl-bevel.bv-bn .bv-course {
    font-size: 16px;
}

.tpl-bevel.bv-bn .bv-meta {
    font-size: 15px;
}

.tpl-bevel.bv-bn .bv-h {
    font-size: 16px;
    font-weight: 700;
}

.tpl-bevel.bv-bn .bv-col li {
    font-size: 15px;
    line-height: 1.5;
}

.tpl-bevel.bv-bn .bv-col li.bv-strong {
    font-size: 16.5px;
}

.tpl-bevel.bv-bn .bv-mem-no {
    font-size: 13px;
    letter-spacing: .08em;
}

.tpl-bevel.bv-bn .bv-mem-sub {
    font-size: 13.5px;
}

.tpl-bevel.bv-bn .bv-foot {
    font-size: 14px;
}

/* ==========================================================================
   Orbit ("orbit") — clean assignment cover
   Spec matches the supplied design: 794x1123, 64px padding, navy quarter-disc
   (250x380, 250px bottom-left radius) with an 84px accent circle, tracked
   eyebrow + 56x5 rule + 50px title, Subject / Course Code boxes, two soft
   cards and a ruled date footer. Colours come from the palette (darker of
   Bar/Accent = shape, code box and headings; lighter = circle and rule).
   English text is locked to Plus Jakarta Sans (loaded in covermaker.html), so
   it ignores the Cover font picker; delete the first rule to let it follow it.
   ========================================================================== */

.tpl-orbit {
    --orb-dark: #0F1B3D;
    --orb-accent: #F2A541;
    --orb-mute: #5B6478;
    --orb-body: #2B3550;
    --orb-line: #D9DEE9;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 64px;
    background: #fff;
    color: var(--orb-dark);
    text-align: left;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.tpl-orbit * {
    box-sizing: border-box;
}

.orb-art {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.tpl-orbit>*:not(.orb-art) {
    position: relative;
    z-index: 1;
}

.orb-ph {
    opacity: .45;
}

/* Header */
.orb-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 460px;
    min-height: 72px;
    flex: none;
}

.orb-logo {
    width: 72px;
    height: 72px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.orb-brand-txt {
    min-width: 0;
}

.orb-uni {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .2px;
    color: var(--orb-dark);
}

.orb-uni-sm {
    font-size: 19px;
}

.orb-uni-xs {
    font-size: 16px;
}

.orb-dept {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--orb-mute);
}

/* Eyebrow, rule, title, boxes */
.orb-mid {
    margin-top: 190px;
    flex: none;
}

.orb-eyebrow {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orb-mute);
}

.orb-no {
    max-width: 280px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    letter-spacing: 2px;
    color: var(--orb-dark);
}

.orb-rule {
    width: 56px;
    height: 5px;
    margin: 16px 0 24px;
    background: var(--orb-accent);
}

.orb-title {
    margin: 0;
    max-width: 520px;
    font-size: 50px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
    color: var(--orb-dark);
    overflow-wrap: anywhere;
}

.orb-title-md {
    font-size: 42px;
}

.orb-title-sm {
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -.6px;
}

.orb-title-xs {
    font-size: 27px;
    line-height: 1.18;
    letter-spacing: -.3px;
}

.orb-boxes {
    display: flex;
    gap: 16px;
    margin-top: 48px;
    align-items: stretch;
}

.orb-subject,
.orb-code {
    border-radius: 14px;
    padding: 18px 22px;
}

.orb-subject {
    flex: 1 1 auto;
    min-width: 0;
    border: 1.5px solid var(--orb-line);
}

.orb-code {
    flex: none;
    width: 190px;
    background: var(--orb-dark);
    color: #fff;
}

.orb-lbl {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orb-mute);
}

.orb-code .orb-lbl {
    color: #C9D2EA;
}

.orb-subject-val,
.orb-code-val {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.orb-code-val {
    color: #fff;
}

.orb-spacer {
    flex: 1 1 auto;
    min-height: 22px;
}

/* Cards */
.orb-cards {
    display: flex;
    gap: 16px;
    flex: none;
}

.orb-card {
    flex: 1 1 0;
    min-width: 0;
    padding: 24px 26px;
    border-radius: 14px;
    background: #F3F5FA;
}

.orb-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orb-mute);
}

.orb-count {
    letter-spacing: .3px;
    text-transform: none;
    color: var(--orb-dark);
}

.orb-strong {
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.22;
    color: var(--orb-dark);
    overflow-wrap: anywhere;
}

.orb-line {
    font-size: 14px;
    line-height: 1.7;
    color: var(--orb-body);
    overflow-wrap: anywhere;
}

.orb-dot {
    margin: 0 .45em;
    opacity: .6;
}

/* Group card + roster */
.orb-group .orb-mid {
    margin-top: 100px;
}

.orb-group .orb-boxes {
    margin-top: 30px;
}

.orb-group .orb-cards {
    flex-direction: column;
    gap: 12px;
}

.orb-group .orb-card {
    flex: none;
    padding: 20px 26px 18px;
}

/* Submitted To: label on top, name left, details right */
.orb-group .orb-card-to {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    align-items: start;
}

.orb-group .orb-card-to .orb-h {
    grid-column: 1 / -1;
}

.orb-group .orb-card-to .orb-strong {
    grid-column: 1;
    grid-row: 2 / span 4;
    margin-bottom: 0;
}

.orb-group .orb-card-to .orb-line {
    grid-column: 2;
    line-height: 1.55;
}

.orb-group .orb-card-to .orb-line:first-of-type {
    margin-top: 10px;
}

.orb-group .orb-strong {
    margin-bottom: 4px;
}

.orb-group .orb-meta {
    font-size: 13px;
    line-height: 1.5;
}

.orb-roster {
    list-style: none;
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--orb-line);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 10px;
}

.orb-roster-2 {
    grid-template-columns: 1fr 1fr;
}

.orb-mem {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    padding: 4px 12px;
    border-radius: 10px;
}

.orb-mem-name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--orb-dark);
    overflow-wrap: anywhere;
}

.orb-mem-no {
    display: inline-block;
    width: 24px;
    padding: 1px 0;
    text-align: center;
    margin-right: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--orb-accent);
    filter: brightness(.82);
}

.orb-mem-sub {
    padding-left: 30px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--orb-body);
}

/* Leader: the row lifts onto a white pill with an accent edge, and its number becomes a solid accent badge */
.orb-mem-lead {
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 3px 0 0 var(--orb-accent), 0 1px 3px rgba(15, 27, 61, .08);
}

.orb-hl {
    background: none;
    padding: 0;
    margin: 0;
}

.orb-mem-lead .orb-mem-no {
    border-radius: 5px;
    background: var(--orb-accent);
    color: var(--orb-dark);
    filter: none;
}

.orb-roster-2 .orb-mem-name {
    font-size: 13.5px;
}

.orb-roster-2 .orb-mem-sub {
    font-size: 11.5px;
    padding-left: 30px;
}

/* Footer */
.orb-foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    flex: none;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1.5px solid var(--orb-line);
    font-size: 13px;
    color: var(--orb-mute);
}

.orb-foot b {
    font-weight: 700;
    color: var(--orb-dark);
}

.orb-date {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.orb-lab .orb-date-r {
    margin-left: auto;
}

/* ---- Bangla: no tracking / forced caps, roomier line-height ---- */
.tpl-orbit.orb-bn .orb-eyebrow,
.tpl-orbit.orb-bn .orb-lbl,
.tpl-orbit.orb-bn .orb-h {
    letter-spacing: 0;
    text-transform: none;
}

.tpl-orbit.orb-bn .orb-eyebrow {
    font-size: 16px;
}

.tpl-orbit.orb-bn .orb-no {
    letter-spacing: 0;
}

.tpl-orbit.orb-bn .orb-uni {
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: 0;
}

.tpl-orbit.orb-bn .orb-uni-sm {
    font-size: 22px;
}

.tpl-orbit.orb-bn .orb-uni-xs {
    font-size: 19px;
}

.tpl-orbit.orb-bn .orb-dept {
    font-size: 15.5px;
    line-height: 1.45;
}

.tpl-orbit.orb-bn .orb-title {
    font-size: 46px;
    line-height: 1.28;
    letter-spacing: 0;
}

.tpl-orbit.orb-bn .orb-title-md {
    font-size: 39px;
}

.tpl-orbit.orb-bn .orb-title-sm {
    font-size: 31px;
    line-height: 1.3;
}

.tpl-orbit.orb-bn .orb-title-xs {
    font-size: 25px;
    line-height: 1.35;
}

.tpl-orbit.orb-bn .orb-lbl,
.tpl-orbit.orb-bn .orb-h {
    font-size: 14.5px;
}

.tpl-orbit.orb-bn .orb-subject-val,
.tpl-orbit.orb-bn .orb-code-val {
    font-size: 20px;
    line-height: 1.35;
}

.tpl-orbit.orb-bn .orb-strong {
    font-size: 21px;
    line-height: 1.35;
}

.tpl-orbit.orb-bn .orb-line {
    font-size: 16px;
    line-height: 1.55;
}

.tpl-orbit.orb-bn .orb-mem-name {
    font-size: 15.5px;
    line-height: 1.4;
}

.tpl-orbit.orb-bn .orb-mem-sub {
    font-size: 13.5px;
}

.tpl-orbit.orb-bn .orb-roster-2 .orb-mem-name {
    font-size: 14.5px;
}

.tpl-orbit.orb-bn .orb-roster-2 .orb-mem-sub {
    font-size: 12.5px;
}

.tpl-orbit.orb-bn .orb-foot {
    font-size: 15px;
}

/* ==========================================================================
   Tidal ("tidal") — report-style cover with a red + navy wave
   Book-spine shadow down the left edge, logo + university top-left, course
   code over a big light course title top-right, a big accent number over a
   thin document word and a bold tracked title, Submitted By / To in the white
   field and the date on the navy wave. Wave, dots and spine are one SVG
   (.td-art) painted by tidalArtSvg(); colours come from the inline --td-*
   variables set by renderTidal() (navy = darker palette colour, red = the
   other). Fonts follow the Cover font picker.
   ========================================================================== */

.tpl-tidal {
    --td-navy: #0B2D5B;
    --td-red: #EF3B43;
    --td-mute: #6b7384;
    --td-body: #2a3550;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 64px 64px 46px 78px;
    background: #fff;
    color: var(--td-navy);
    text-align: left;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.tpl-tidal * {
    box-sizing: border-box;
}

.td-art {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.tpl-tidal>*:not(.td-art) {
    position: relative;
    z-index: 1;
}

.td-ph {
    opacity: .45;
}

.td-dot {
    margin: 0 .45em;
    opacity: .6;
}

/* Header */
.td-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex: none;
}

.td-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 340px;
    min-height: 44px;
}

.td-logo {
    width: 52px;
    height: 52px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.td-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.td-chev {
    width: 17px;
    flex: none;
    color: var(--td-navy);
}

.td-uni {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2.4px;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--td-navy);
}

.td-uni-sm {
    font-size: 14px;
    letter-spacing: 1.8px;
}

.td-uni-xs {
    font-size: 12px;
    letter-spacing: 1.2px;
}

.td-course {
    text-align: right;
    max-width: 300px;
    min-width: 0;
}

.td-course-code {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--td-navy);
    overflow-wrap: anywhere;
}

.td-course-title {
    margin-top: 2px;
    font-size: 36px;
    font-weight: 300;
    line-height: 1.08;
    color: #9ea3ad;
    overflow-wrap: anywhere;
}

.td-course-sm {
    font-size: 27px;
}

.td-course-xs {
    font-size: 20px;
    line-height: 1.15;
}

/* Title block */
.td-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    /* keep clear of the wave rising from the bottom-left; the larger bottom pad lifts the block so the white space above and below balances */
    padding: 20px 0 215px;
}

.td-main {
    flex: none;
    max-width: 560px;
}

/* Stacked: small accent number, tracked sub-tone document word, then the bold title as the hero */
.td-no,
.td-word {
    display: block;
}

.td-no {
    font-size: 60px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--td-red);
    overflow-wrap: anywhere;
}

.td-no-sm {
    font-size: 40px;
}

.td-no-xs {
    font-size: 28px;
}

.td-word {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--td-sub);
}

.td-title {
    margin-top: 14px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--td-navy);
    overflow-wrap: anywhere;
}

.td-title-md {
    font-size: 32px;
    letter-spacing: 2.5px;
}

.td-title-sm {
    font-size: 24px;
    letter-spacing: 1.8px;
}

.td-title-xs {
    font-size: 19px;
    letter-spacing: 1.2px;
    line-height: 1.2;
}

.td-title-xxs {
    font-size: 15px;
    letter-spacing: .6px;
    line-height: 1.25;
}

.td-rule {
    width: 170px;
    height: 2px;
    margin: 18px 0 14px;
    background: var(--td-navy);
}

.td-blurb {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .3px;
    color: var(--td-sub);
}

/* Submitted By / To */
.td-cards {
    display: flex;
    gap: 40px;
    flex: none;
}

.td-card {
    flex: 1 1 0;
    min-width: 0;
}

.td-card-by {
    flex: 1.25 1 0;
}

.td-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--td-red);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--td-red);
}

.td-count {
    letter-spacing: .3px;
    text-transform: none;
    color: var(--td-mute);
    font-weight: 600;
}

.td-strong {
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.22;
    color: var(--td-navy);
    overflow-wrap: anywhere;
}

.td-line {
    font-size: 16px;
    line-height: 1.65;
    color: var(--td-body);
    overflow-wrap: anywhere;
}

/* Group roster */
.td-roster {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.td-roster-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
}

.td-mem {
    padding: 4px 0;
    min-width: 0;
}

.td-mem-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--td-navy);
    overflow-wrap: anywhere;
}

.td-mem-no {
    display: inline-block;
    min-width: 26px;
    margin-right: 4px;
    font-size: 13px;
    font-weight: 800;
    color: var(--td-red);
}

.td-mem-lead .td-mem-name {
    color: var(--td-red);
}

.td-mem-sub {
    display: block;
    padding-left: 30px;
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--td-mute);
}

.td-roster-2 .td-mem-name {
    font-size: 12.5px;
}

.td-roster-2 .td-mem-sub {
    font-size: 10.5px;
}

.td-group .td-body {
    gap: 26px;
    padding-bottom: 190px;
}


/* Dense group (5+ members): number + word share a row, tighter roster; the wave is pushed down in the SVG */
.td-dense .td-body {
    gap: 18px;
    padding-bottom: 96px;
}

.td-dense .td-no {
    font-size: 46px;
}

.td-dense .td-word {
    margin-top: 4px;
    font-size: 16px;
    letter-spacing: 5px;
}

.td-dense .td-title {
    margin-top: 6px;
}

.td-dense .td-rule {
    margin: 12px 0 10px;
}

.td-dense .td-strong {
    margin-top: 8px;
    font-size: 19px;
}

.td-dense .td-mem {
    padding: 2px 0;
}

.td-dense .td-roster {
    margin-top: 4px;
}

/* Footer on the navy wave */
.td-foot {
    display: flex;
    gap: 48px;
    flex: none;
    color: #fff;
}

.td-date {
    font-size: 18px;
    line-height: 1.4;
}

.td-date-lbl {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.td-date b {
    font-weight: 700;
}

/* ---- Bangla: no tracking / forced caps, roomier line-height ---- */
.tpl-tidal.td-bn .td-uni,
.tpl-tidal.td-bn .td-course-code,
.tpl-tidal.td-bn .td-word,
.tpl-tidal.td-bn .td-title,
.tpl-tidal.td-bn .td-h,
.tpl-tidal.td-bn .td-date-lbl {
    letter-spacing: 0;
    text-transform: none;
}

.tpl-tidal.td-bn .td-uni {
    font-size: 20px;
}

.tpl-tidal.td-bn .td-uni-sm {
    font-size: 17px;
}

.tpl-tidal.td-bn .td-uni-xs {
    font-size: 14px;
}

.tpl-tidal.td-bn .td-word {
    font-size: 24px;
    line-height: 1.25;
}

.tpl-tidal.td-bn .td-title {
    line-height: 1.3;
}

.tpl-tidal.td-bn .td-strong {
    font-size: 24px;
    line-height: 1.35;
}

.tpl-tidal.td-bn .td-line,
.tpl-tidal.td-bn .td-mem-name {
    line-height: 1.55;
}

/* Date footer sits on the dark wave: keep the placeholder legible, and in Bangla (thin strokes) go bigger, bolder and fully white */
.td-foot .td-ph {
    opacity: .85;
}

.tpl-tidal.td-bn .td-date {
    font-size: 22px;
    line-height: 1.35;
}

.tpl-tidal.td-bn .td-date-lbl {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

.tpl-tidal.td-bn .td-date b {
    font-weight: 200;
    font-size: 19px;
}

/* Project / Thesis: no running number, so the "Current" hero shows just the large word */
.tpl-current .cm-hero.cm-nonum .cm-word { font-size: 46px; letter-spacing: .06em; }
