/*
  Replacement stylesheet for the legacy jdb UW faculty page.
  Save as jdb-style.css beside index.html and link it from the page.
  It intentionally uses no external CSS framework or theme assets.
*/

:root {
  --uw-purple: #4b2e83;
  --uw-deep-purple: #32006e;
  --uw-gold: #b7a57a;
  --uw-pale-gold: #e8e3d3;
  --ink: #292929;
  --muted: #666;
  --line: #ded9e7;
  --page-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #f4f3f6;
  color: var(--ink);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--uw-purple); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--uw-deep-purple); text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; }

#branding {
  background-color: var(--uw-purple);
  background-image: linear-gradient(120deg, var(--uw-deep-purple), var(--uw-purple)) !important;
  background-position: center;
  background-size: cover;
  color: white;
  border-bottom: 5px solid var(--uw-gold);
}

#thin-strip {
  background: #241442;
  font-size: 12px;
  line-height: 1.4;
}
#thin-strip > div,
#header,
#dawgdrops .dawgdrops-inner,
#footer,
#footer-main {
  width: min(var(--page-width), calc(100% - 40px));
  margin-inline: auto;
}
#thin-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
#thin-strip a { color: white; text-decoration: none; }
#thin-strip a:hover { text-decoration: underline; }

#header {
  position: relative;
  min-height: 115px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
}
#header .wordmark {
  color: white;
  font-family: Georgia, "Droid Serif", serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  text-decoration: none;
  font-weight: normal;
}
#header .patch { display: none; }
#search { margin-left: auto; width: min(280px, 32%); }
#search form { display: flex; }
#search input[type="text"] {
  min-width: 0;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d5cce2;
  border-radius: 3px 0 0 3px;
  font: inherit;
}
#search input[type="submit"] {
  padding: 8px 13px;
  border: 0;
  border-radius: 0 3px 3px 0;
  background: var(--uw-gold);
  color: #211a2e;
  font-weight: 700;
  cursor: pointer;
}
.search-options { display: none; }
#listicon-wrapper { color: white; }

#dawgdrops {
  background: #fff;
  border-bottom: 1px solid #d8d2e2;
  box-shadow: 0 2px 5px rgb(0 0 0 / 5%);
}
#dawgdrops .dawgdrops-inner { padding: 0; }
#menu-dropdowns {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}
#menu-dropdowns > li { position: relative; }
#menu-dropdowns > li > a,
#menu-dropdowns > li > ul > li > a {
  display: block;
  padding: 13px 16px;
  color: var(--uw-purple);
  text-decoration: none;
  font-weight: 600;
}
#menu-dropdowns > li > ul { list-style: none; margin: 0; padding: 0; }
#menu-dropdowns > li > ul > li > a { padding: 10px 16px; font-weight: 400; }
#menu-dropdowns a:hover,
#menu-dropdowns a:focus { background: #f0edf5; text-decoration: underline; }
#menu-dropdowns .dawgdrops-menu { display: block; }
#menu-dropdowns .dawgdrops-item { min-width: 0; }

#primary {
  padding: 34px 0 44px;
  background: #f4f3f6;
}
#content.container {
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
}
.row.show-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 0.9fr);
  align-items: start;
  gap: 30px;
}
.span8, #secondary { min-width: 0; width: auto; margin: 0; float: none; }

article[class~="page"] {
  background: #fff;
  border: 1px solid #e4e0e9;
  border-top: 5px solid var(--uw-purple);
  padding: clamp(22px, 3vw, 38px);
  box-shadow: 0 2px 8px rgb(30 20 50 / 5%);
}
.entry-header { margin: 0 0 22px; }
.entry-title {
  margin: 0;
  color: var(--uw-purple);
  font-family: "Droid Serif", Georgia, serif;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.25;
  font-weight: 400;
}
.entry-content { font-size: 16px; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content h2 {
  margin: 30px 0 16px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--uw-gold);
  color: var(--uw-purple);
  font-family: "Droid Serif", Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}
.entry-content h4 { margin: 0 0 10px; font-size: 15px; line-height: 1.35; }

#portalLightStory, .portalRound, .portalBlockBG, .span-15, .pad3, .bio {
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  float: none;
  background: transparent;
  border: 0;
}
.bio::after { content: ""; display: block; clear: both; }
.bio > p:first-child img {
  margin: 4px 20px 12px 0 !important;
  border: 4px solid #f0edf5;
  box-shadow: 0 1px 4px rgb(0 0 0 / 15%);
}
.four-col {
  display: inline-block;
  vertical-align: top;
  width: 24%;
  min-width: 125px;
  margin: 0 0 22px;
  padding: 0 10px 0 0;
}
.four-col img {
  display: block;
  float: none !important;
  width: 113px !important;
  height: 145px !important;
  object-fit: contain;
  padding: 0 !important;
  margin: 0;
}
.four-col a { display: inline-block; }
.four-col h4 { min-height: 40px; }

#secondary {
  position: relative;
  padding: 25px;
  background: white;
  border: 1px solid #e4e0e9;
  border-top: 5px solid var(--uw-gold);
  box-shadow: 0 2px 8px rgb(30 20 50 / 5%);
}
#secondary .stripe-top, #secondary .stripe-bottom { display: none; }
#sidebar, #uw_showcase_widget-2 { margin: 0; padding: 0; }
#secondary .widgettitle {
  margin: 0 0 17px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--uw-gold);
  color: var(--uw-purple);
  font-family: "Droid Serif", Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
}
#secondary .widgettitle span { display: inline; }
#secondary img.image-side {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 0 18px;
}
#secondary p { margin: 0; overflow-wrap: anywhere; }
.clear { clear: both; }

#footerBG {
  background: #292134;
  color: #eee;
  padding: 30px 0 24px;
  border-top: 5px solid var(--uw-gold);
}
#footer h2 {
  margin: 0 0 18px;
  color: white;
  font-family: "Droid Serif", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}
#menu-global-footer, #menu-global-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#menu-global-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 32px;
}
#menu-global-footer > li { min-width: 110px; }
#menu-global-footer > li > a {
  color: white;
  font-weight: 700;
  text-decoration: none;
}
#menu-global-footer ul { margin-top: 7px; }
#menu-global-footer ul a { color: #e8e3d3; font-size: 13px; text-decoration: none; }
#menu-global-footer a:hover { text-decoration: underline; }
#footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  color: #eee;
  font-size: 12px;
}
#footer-main ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  order: 2;
  list-style: none;
  margin: 0;
  padding: 0;
}
#footer-main a { color: #eee; }
#footer-right { margin-left: auto; }
#footer-left { order: 3; width: 100%; }
#uw-mobile-panel { display: none !important; }
.assistive-text, .skip-link .assistive-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 850px) {
  #thin-strip ul { gap: 6px 14px; }
  #header { min-height: 95px; }
  .row.show-grid { grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr); gap: 20px; }
  article[class~="page"] { padding: 22px; }
  #secondary { padding: 20px; }
  .four-col { width: 48%; }
}

@media (max-width: 650px) {
  #thin-strip { display: none; }
  #header {
    width: calc(100% - 32px);
    min-height: 0;
    display: block;
    padding: 22px 0;
  }
  #header .wordmark { display: block; font-size: 27px; }
  #search { display: none; }
  #dawgdrops .dawgdrops-inner { width: 100%; }
  #menu-dropdowns { flex-wrap: wrap; }
  #menu-dropdowns > li { flex: 1 1 auto; }
  #menu-dropdowns > li > ul > li > a { padding: 10px 12px; }
  #content.container { width: calc(100% - 28px); }
  #primary { padding: 20px 0 28px; }
  .row.show-grid { display: flex; flex-direction: column; gap: 20px; }
  .span8, #secondary { width: 100%; }
  article[class~="page"] { padding: 20px; }
  .entry-title { font-size: 29px; }
  .bio > p:first-child img { width: 125px !important; height: auto !important; margin-right: 14px !important; }
  .four-col { width: 48%; min-width: 0; }
  #secondary img.image-side { max-width: 240px; }
  #footer, #footer-main { width: calc(100% - 32px); }
  #menu-global-footer { gap: 18px 24px; }
  #footer-right { margin-left: 0; }
}


/* Current UW Psychology-inspired finish, while retaining the legacy page markup.
   All styling is local; no theme stylesheet or framework is required. */
:root {
  --uw-purple: #4b2e83;
  --uw-deep-purple: #32006e;
  --uw-gold: #b7a57a;
  --ink: #333333;
  --line: #d9d9d9;
}

body {
  background: #f5f5f5;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

#branding {
  background: #fff !important;
  color: var(--uw-purple);
  border-top: 7px solid var(--uw-purple);
  border-bottom: 1px solid #dedede;
}

#thin-strip {
  background: #f2f2f2;
  border-bottom: 1px solid #dedede;
  color: #333;
}
#thin-strip a { color: #333; }
#thin-strip a:hover { color: var(--uw-purple); }

#header {
  min-height: 104px;
  padding-top: 18px;
  padding-bottom: 18px;
}
#header .wordmark {
  color: var(--uw-purple);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.5px;
}
#search input[type="text"] { border-color: #c9c9c9; }
#search input[type="submit"] {
  background: var(--uw-purple);
  color: white;
}

#dawgdrops {
  background: var(--uw-purple);
  border: 0;
  box-shadow: none;
}
#menu-dropdowns > li > a,
#menu-dropdowns > li > ul > li > a {
  color: #fff;
  font-weight: 600;
}
#menu-dropdowns > li > ul > li > a { font-weight: 400; }
#menu-dropdowns a:hover,
#menu-dropdowns a:focus {
  background: var(--uw-deep-purple);
  color: #fff;
  text-decoration: underline;
}

#primary { background: #f5f5f5; }
article[class~="page"] {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 4px solid var(--uw-purple);
  box-shadow: 0 2px 5px rgb(0 0 0 / 5%);
}
.entry-title {
  color: var(--uw-purple);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.entry-content h2 {
  color: var(--uw-purple);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  border-bottom: 2px solid var(--uw-gold);
}
.entry-content h4 { font-family: Arial, Helvetica, sans-serif; }
.bio > p:first-child img {
  border: 1px solid #ddd;
  box-shadow: none;
}
.four-col h4 { min-height: 42px; }
.four-col img { max-width: 100%; }

#secondary {
  border: 1px solid #e0e0e0;
  border-top: 4px solid var(--uw-gold);
  box-shadow: 0 2px 5px rgb(0 0 0 / 5%);
}
#secondary .widgettitle {
  color: var(--uw-purple);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}
#secondary img.image-side {
  border: 1px solid #ddd;
  padding: 4px;
}

#footerBG {
  background: #292929;
  border-top: 5px solid var(--uw-gold);
}
#footer h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}
#menu-global-footer ul a { color: #e4e4e4; }

/* Phones and small tablets (including landscape): wrap the bio text under the photo */
@media (max-width: 950px) {
  .bio > p:first-child {
    display: block !important;
    margin-bottom: 0;
  }
  .bio > p:first-child img {
    float: left;
    width: 150px !important;
    height: auto !important;
    margin: 4px 16px 6px 0 !important;
    padding: 0 !important;
  }
  .entry-content h2 { clear: both; margin-top: 12px; }
}

@media (max-width: 650px) {
  #header .wordmark { font-size: 27px; }
  #menu-dropdowns > li > a,
  #menu-dropdowns > li > ul > li > a { padding: 10px 12px; }
  .bio > p:first-child img {
    width: 110px !important;
    margin-right: 14px !important;
  }
}
