/* Sidebar image: 30% narrower than the theme's 270px sidebar (270 * 0.7 = 189px).
   Applies at every screen width; the theme's max-width:100% still shrinks it on very narrow screens. */
header img {
  width: 189px;
}

/* Underline links to other sites and mailto: links; links to this site stay plain
   (the theme removes underlines by default). Selecting by href in CSS, not by a class
   added by script, avoids a flash of underline on internal links while the page loads.
   Absolute links to this site are un-underlined by assets/js/external-links.js. */
a[href^="http"],
a[href^="//"],
a[href^="mailto:"] {
  text-decoration: underline;
}

a[href^="http"].internal,
a[href^="//"].internal {
  text-decoration: none;
}

/* Sidebar tagline: regular weight, 13px is the largest size that fits on one line in the 270px sidebar. */
header .tagline {
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

/* /resume: section headings with a divider line underneath (the theme's own divider grey, #e5e5e5). */
section.resume h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #222;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 4px;
  margin: 32px 0 14px;
}

section.resume h2:first-child {
  margin-top: 0;
}

section.resume .entry {
  margin-bottom: 18px;
}

@media screen and (max-width: 960px) {
  section.resume {
    border-width: 0;
  }
}

/* /resume: layout toggle link (wide screens only; below 961px the theme already stacks the layout).
   Two-panel mode: the Material "fullscreen" icon (as a link) under the tagline in the left panel.
   Full-page mode: the left panel is hidden except the home link (name), the content spans the full width,
   and the toggle shows the Material "fullscreen_exit" icon at the bottom left, under the last section. The toggle stays inside
   <header> in the HTML; `display: contents` + flex `order` moves it below the content with CSS only, so it
   is already in place on first paint (no flash). */
.layout-toggle {
  display: none;
}

@media screen and (min-width: 961px) {
  .layout-toggle {
    display: inline-block;
  }

  .layout-toggle svg {
    vertical-align: middle;
  }

  .layout-toggle .when-full {
    display: none;
  }

  html.layout-full .layout-toggle .when-two {
    display: none;
  }

  html.layout-full .layout-toggle .when-full {
    display: inline-block;
  }

  html.layout-full .wrapper {
    display: flex;
    flex-direction: column;
    width: auto;
    margin: 0;
  }

  html.layout-full header {
    display: contents;
  }

  html.layout-full section,
  html.layout-full footer {
    float: none;
    position: static;
    width: auto;
  }

  html.layout-full header > :not(h1):not(.layout-toggle) {
    display: none;
  }

  html.layout-full header h1 {
    order: 0;
    margin-bottom: 16px;
  }

  html.layout-full section {
    order: 1;
    padding-bottom: 16px;
  }

  html.layout-full .layout-toggle {
    order: 2;
    align-self: flex-start;
    margin-top: 0;
  }
}

/* The theme makes links bold and dark blue on :hover and :focus. After a mouse click the link keeps :focus
   (also when you come back with the Back button), so it stayed bold. Keep that style for keyboard focus
   (:focus-visible) and for hover, but not for leftover focus from a click. */
a:focus:not(:focus-visible):not(:hover) {
  color: #267CB9;
  font-weight: inherit;
}

/* Homepage "Resume [HTML] [PDF]" line. The PDF link has no href until the PDF exists: it looks like a link
   but is dimmed, shows "Coming soon" on hover, and does nothing. When ready, give it href="/resume.pdf"
   and remove aria-disabled and title. */
a[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

a[aria-disabled="true"]:hover,
a[aria-disabled="true"]:focus {
  color: #267CB9;
  font-weight: inherit;
}
