/* ===================================================================
   HBUHSD Canvas — Combined.css
   Upload in Admin ▸ Settings ▸ Themes ▸ (theme) ▸ Upload ▸ CSS file

   1. Imports & theme variables
   2. Canvas overrides
   3. HBUHSD content styles (blockquote, dive deeper, images, video)
   4. Tech Hub tiles  ← new
   5. Legacy homepage tiles (.uod*) — kept for older pages
   =================================================================== */


/* ===================================================================
   1. IMPORTS & THEME VARIABLES
   Import statements must stay at the top of the file.
   =================================================================== */

@import url(https://fonts.googleapis.com/css?family=PT+Sans);
@import url(https://s3-us-west-2.amazonaws.com/cdn.hbuhsd.edu/canvas/css/DT3.css);

/* DesignPLUS — legacy sidebar */
@import url(https://designtools.ciditools.com/css/themes.css);
@import url(https://designtools.ciditools.com/css/inst_theme_overrides.css);
/* Mobile app CSS file only: */
/* @import url(https://designtools.ciditools.com/css/app.css); */

/* DesignPLUS — new sidebar */
@import url(https://designplus.ciditools.com/css/content.css);
@import url(https://designplus.ciditools.com/css/editor.css);
/* Mobile app CSS file only: */
/* @import url(https://designplus.ciditools.com/css/mobile.css); */

:root {
  /* HBUHSD brand — used by DesignPLUS and by the Tech Hub tiles */
  --dt-color-primary: #005D97;
  --dt-color-primary-contrast: #FFFFFF;
  --dt-color-primary-dark-text: #00365C;
  --dt-color-secondary: #ED9623;
  --dt-color-secondary-contrast: #000000;
  --dt-color-secondary-dark-text: #7A5012;
  --dt-color-accent: #E4E4E4;
  --dt-color-accent-contrast: #000000;
  --dt-color-accent-dark-text: #4F4F4F;
  --dt-color-gray: #CCCCCC;
  --dt-color-gray-contrast: #000000;
  --dt-color-gray-dark-text: #525252;
  --dt-color-white: #FFFFFF;
  --dt-color-white-contrast: #000000;
  --dt-color-white-dark-text: #4D4D4D;
}


/* ===================================================================
   2. CANVAS OVERRIDES
   =================================================================== */

.user_content,
p li tbody {
  font-size: .95rem;
}

.pages.show .page-title {
  font-size: 2em;
  font-weight: 300;
}

#course_section_sis_source_id {
  width: 120px !important;
}

/* Grammarly LTI */
iframe.tool_launch {
  min-height: auto;
}


/* ===================================================================
   3. HBUHSD CONTENT STYLES
   =================================================================== */

/* ---- Pull quote ---- */
blockquote {
  display: inline-block;
  position: relative;
  background: #fff;
  padding: 15px 20px 15px 45px;
  margin: 2em;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.2;
  color: #666;
  border-left: 12px solid #4B4B50;
  border-right: 2px solid #4B4B50;
  box-shadow: 2px 2px 15px #ccc;
}
blockquote::before {
  content: "\201C";                 /* left double quote */
  position: absolute;
  left: 10px;
  top: 5px;
  font-family: Georgia, serif;
  font-size: 60px;
  font-weight: bold;
  color: #999;
}
blockquote::after { content: ""; }
blockquote em { font-style: italic; }
blockquote cite {
  display: block;
  margin-top: 5px;
  color: #999;
  font-size: 14px;
}
blockquote cite::before { content: "\2014 \2009"; }

/* ---- "Dive deeper" callout box ---- */
.divedeeper {
  width: 75%;
  margin: 2em auto;
  padding: 0;
  border: 2px solid #4B4B50;
}
.divedeeper h2 {
  margin-top: 0;
  padding: .3em;
  color: #99ccff;
  background-color: #4B4B50;
}
.divedeeper h2::before {
  content: url("https://s3-us-west-2.amazonaws.com/cdn.hbuhsd.edu/canvas/images/divedeeper.png");
  float: left;
  vertical-align: bottom;
  padding-right: 6px;
}
.divedeeper p { margin: 1em; }

/* ---- Activity box ---- */
.uodActivity {
  width: 75%;
  margin: 2em auto;
  padding: 0;
  border: 5px solid #488ba4;
}
.uodActivity h2 {
  margin-top: 0;
  padding: .3em;
  color: #fff;
  background-color: #488ba4;
}
.uodActivity p { margin: 1em; }
.uodActivity.enscite { border-color: #4B4B50; }

/* ---- Image helpers ---- */
.img-right { float: right; margin: 0 0 10px 10px; }
.img-left  { float: left;  margin: 0 10px 10px 0; }
.img-round {
  border: 1px solid #ccc;
  padding: 5px;
  background: #fff;
  border-radius: 500px;
}
.img-caption {
  margin: 0;
  padding: 2px;
  background: #EEE;
  text-align: center;
  font-style: oblique;
  font-size: 14px;
}

/* ---- Video helpers ---- */
.vid-caption {
  margin: 0 0 1em;
  padding: 2px;
  background: #EEE;
  text-align: center;
  font-style: oblique;
  font-size: 14px;
}
.vid-caption p { font-size: 14px; }
.vid-tile {
  float: left;
  max-width: 480px;
  margin: 0 20px 20px 0;
}


/* ===================================================================
   4. TECH HUB TILES
   Markup lives in the page body (Tech Hub page HTML).
   Every class is prefixed .eth- so nothing here can collide.
   =================================================================== */

/* ---- Intro line ---- */
.eth-intro {
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
  color: #35414b;
}

/* ---- Help Desk callout ---- */
.eth-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 24px 0 0;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--dt-color-primary, #005D97);
  color: #fff;
}
.eth-support-text { flex: 1 1 320px; min-width: 0; }
.eth-support-text h3 {
  margin: 0;
  font-family: 'PT Sans', Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.eth-support-text p {
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: #cfe2ef;
}
.eth-support a.eth-btn,
.eth-support a.eth-btn:link,
.eth-support a.eth-btn:visited {
  flex: 0 0 auto;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--dt-color-secondary, #ED9623);
  color: #2b1c04;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.eth-support a.eth-btn:hover,
.eth-support a.eth-btn:focus {
  background: #ffae44;
  color: #2b1c04;
}

/* ---- Section heading ---- */
.eth-sectionhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e4e8ec;
}
.eth-sectionhead h2 {
  margin: 0;
  font-family: 'PT Sans', Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #00365C;
}
.eth-sectionhead span { font-size: 13px; color: #6d7b87; }

/* ---- Grid: fills the width, more tiles on wider screens ---- */
.eth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ---- Tile ---- */
.eth-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe6ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 54, 92, .06);
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.eth-card:hover,
.eth-card:focus-within {
  box-shadow: 0 10px 24px rgba(0, 54, 92, .14);
  transform: translateY(-3px);
}

/* Media zone — identical crop for every tile; photo optional */
.eth-card-media {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: var(--dt-color-primary, #005D97);
}
.eth-card-media img {
  display: block;
  width: 100%;
  height: 140px;
  margin: 0;
  padding: 0;
  object-fit: cover;               /* every photo ends up the same shape */
}
.eth-card-media::after {           /* orange accent square */
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 14px;
  height: 14px;
  background: var(--dt-color-secondary, #ED9623);
}
.eth-card-num {                    /* big step number */
  position: absolute;
  left: 18px;
  bottom: -14px;
  font-family: 'PT Sans', Helvetica, sans-serif;
  font-size: 86px;
  line-height: 1;
  font-weight: 700;
  color: rgba(255, 255, 255, .22);
  pointer-events: none;
}

/* Description overlay — hover, keyboard focus, or tap */
.eth-card-desc {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 18px;
  background: rgba(0, 54, 92, .95);
  color: #fff;
  font-size: 14.5px;
  line-height: 1.45;
  opacity: 0;
  transition: opacity 160ms ease;
}
.eth-card:hover .eth-card-desc,
.eth-card:focus-within .eth-card-desc { opacity: 1; }

/* Touch devices have no hover — show the description permanently */
@media (hover: none) {
  .eth-card-desc { opacity: 1; }
}

/* ---- Tile text ---- */
.eth-card-body { padding: 16px 18px 18px; }
.eth-card-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #B96F05;
}
.eth-card-body h3 { margin: 6px 0 0; }
.eth-card-body h3 a,
.eth-card-body h3 a:link,
.eth-card-body h3 a:visited {
  font-family: 'PT Sans', Helvetica, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: #00365C;
  text-decoration: none;
}
.eth-card-body h3 a:hover,
.eth-card-body h3 a:focus { color: var(--dt-color-primary, #005D97); }

/* Makes the whole tile clickable */
.eth-card-hit {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
}

/* ---- Footer ---- */
.eth-rule {
  border: none;
  border-top: 1px solid #e4e8ec;
  margin: 44px 0 18px;
}
.eth-footer {
  margin: 0 0 8px;
  text-align: center;
  font-size: 13.5px;
  color: #6d7b87;
}


/* ===================================================================
   5. LEGACY HOMEPAGE TILES (.uod*)
   Superseded by section 4. Kept so older course homepages that still
   use this markup keep working. Safe to delete once none do.
   Developed by the University of Derby, CC BY-NC-SA 4.0, v2.2 (2016).
   =================================================================== */

#uodAll {
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  background-color: #fff;
  color: #000;
  font-family: Helvetica, sans-serif;
  font-size: 13px;
}
#uodAll a { text-decoration: none; }
#uodAll p { font-size: 13px; }

.uodContentsTableIntroPara { text-align: justify; }
.uodForceLeft  { padding: 0; text-align: left; }
.uodForceRight { padding: 0; text-align: right; }

.uodContentsTable {
  overflow: auto;
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
}

.uodContentsCell {
  display: inline-block;
  vertical-align: top;
  width: 192px;
  margin: 10px;
  padding: 0;
  line-height: 18px;
  background-color: #4B4B50;
}
.uodContentsCell.enscite { border-radius: 8px 8px 0 0; }

.uodContentsTitle {
  height: 34px;
  margin: 0;
  padding: 11px 0;
  text-align: center;
  border-width: 1px 1px medium;
  border-style: solid solid none;
  border-radius: 8px 8px 0 0;
}
.uodContentsCell:hover .uodContentsTitle a { color: #fcb51a; }
.uodContentsCell:hover .uodContentsTitle .uodContentsLink.enscite {
  color: #fcb51a;
  background-color: #4B4B50;
  text-decoration: none;
}

.uodContentsLink { color: #fff; font-weight: bold; }
.uodContentsLink.enscite {
  background-color: #4B4B50;
  color: #fff;
  font-weight: bold;
}
.uodContentsLink.enscite:focus {
  outline: 3px solid orange;
  color: #0096db;
  background-color: #4B4B50;
}

.uodContentsImageAndText {
  position: relative;
  height: 120px;
  margin: 0;
  padding: 0;
  border-width: medium 1px 1px;
  border-style: none solid solid;
}
.uodContentsImageAndText img {
  display: block;
  width: 100%;
  height: 120px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.uodContentsImageAndText p {
  display: none;
  position: absolute;
  top: 0;
  z-index: 100;
  width: 180px;
  height: 105px;
  margin: 0;
  padding: 15px 5px 0;
  background-color: rgba(255, 255, 255, .90);
  text-align: center;
}
.uodContentsCell:hover .uodContentsImageAndText p { display: block; }
.uodContentsImageAndText.enscite p a {
  width: 172px;
  margin: 0 auto;
  color: #0096db;
  font-weight: bold;
}

.uodCurrentWeek::after,
.currentWeek::after {
  display: block;
  padding: 1em;
  content: "Current";
  color: #fff;
  font-weight: bold;
  text-align: center;
}
.uodCurrentWeek::after { background-color: #008A14; }
.currentWeek::after    { background-color: #e54f00; }

#bottomBanner {
  overflow: auto;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #488ba4;
  color: #fff;
  text-align: center;
  line-height: 1.5em;
}

@media (max-width: 1290px) {
  .uodContentsTableIntroPara { margin-right: 0; }
  .uodCourseAttributes { position: relative; margin: 0 auto; }
}
