/* Officelovin Accounts: the sign-in in the header, bookmarks, the sign-in sheet and the account menu.
   Colors and radii come from the theme's tokens (officelovin-v4), with fallbacks. */

/* --- Header: the account follows the social icons, set apart by a hairline ------------------------- */

.ola-account {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 18px;
}

.ola-account::before {
  content: '';
  width: 1px;
  height: 20px;
  margin-right: 4px;
  background: var(--ol-hairline, #d2d2d7);
}

/* Quiet text with a silhouette, not a button; a size under the menu items, with the social icons */
.ola-account__signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(29, 29, 31, .8);
  font: 400 15px var(--ol-font, -apple-system, BlinkMacSystemFont, sans-serif);
  letter-spacing: -.011em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s var(--ol-ease, ease);
}

.ola-account__signin:hover {
  color: var(--ol-text, #1d1d1f);
}

.ola-account__signin svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* A quiet grey disc, filled like the social icons beside it */
.ola-account__avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ol-fill-2, #e8e8ed);
  color: var(--ol-text, #1d1d1f);
  font: 500 14px/1 var(--ol-font, -apple-system, BlinkMacSystemFont, sans-serif);
  cursor: pointer;
  transition: background-color .2s var(--ol-ease, ease);
}

.ola-account__avatar:hover,
.ola-account.is-open .ola-account__avatar {
  background: var(--ol-hairline, #d2d2d7);
}

/* Under 1000px the menu items shrink too: the silhouette alone signs in */
@media (max-width: 999px) {
  .ola-account {
    gap: 10px;
    margin-left: 12px;
  }

  .ola-account__signin {
    font-size: 0;
  }
}

/* --- Account menu -------------------------------------------------------------------------- */

.ola-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 50;
  width: 260px;
  padding: 8px;
  border-radius: var(--ol-radius, 12px);
  background: var(--ol-surface, #fff);
  box-shadow: var(--ol-shadow-pop, 0 10px 30px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04));
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s var(--ol-ease, ease), transform .2s var(--ol-ease, ease), visibility .2s;
}

.ola-account.is-open .ola-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ola-menu__who {
  margin: 0;
  padding: 8px 10px 10px;
  font-size: 14px;
  line-height: 1.35;
}

.ola-menu__who b {
  display: block;
  overflow: hidden;
  color: var(--ol-text, #1d1d1f);
  font-weight: 600;
  text-overflow: ellipsis;
}

.ola-menu__who span {
  display: block;
  overflow: hidden;
  color: var(--ol-text-2, #6e6e73);
  font-size: 13px;
  text-overflow: ellipsis;
}

.ola-menu a,
.ola-menu button,
.ola-menu__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--ol-radius-sm, 8px);
  background: none;
  color: var(--ol-text, #1d1d1f);
  font: 400 14px var(--ol-font, -apple-system, BlinkMacSystemFont, sans-serif);
  text-align: left;
  cursor: pointer;
}

.ola-menu a:hover,
.ola-menu button:hover,
.ola-menu__toggle:hover {
  background: var(--ol-fill, #f5f5f7);
  color: var(--ol-text, #1d1d1f);
}

.ola-menu a svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.ola-menu__count {
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: var(--ol-radius-pill, 980px);
  background: var(--ol-fill-2, #e8e8ed);
  color: var(--ol-text-2, #6e6e73);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.ola-menu hr {
  height: 1px;
  margin: 6px 4px;
  border: 0;
  background: var(--ol-separator, rgba(0, 0, 0, .08));
}

/* iOS-style switch */
.ola-menu__toggle span {
  flex: 1;
}

.ola-menu__toggle input {
  position: absolute;
  opacity: 0;
}

.ola-menu__toggle i {
  position: relative;
  flex: none;
  width: 36px;
  height: 22px;
  border-radius: var(--ol-radius-pill, 980px);
  background: var(--ol-fill-2, #e8e8ed);
  transition: background-color .2s var(--ol-ease, ease);
}

.ola-menu__toggle i::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s var(--ol-ease, ease);
}

.ola-menu__toggle input:checked + i {
  background: #34c759;
}

.ola-menu__toggle input:checked + i::after {
  transform: translateX(14px);
}

.ola-menu__toggle input:focus-visible + i {
  box-shadow: 0 0 0 3px var(--ol-focus-halo, rgba(58, 154, 217, .24));
}

/* On phones the same items sit in the sheet */
.ola-menu--sheet {
  position: static;
  width: auto;
  padding: 4px 0 0;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* --- Phones: an icon next to search --------------------------------------------------------- */

.ola-account-m {
  display: none;
}

@media (max-width: 749px) {
  .ola-account-m {
    position: absolute;
    top: 2px;
    right: 46px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ol-text, #1d1d1f);
    cursor: pointer;
  }

  .ola-account-m svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
  }

  .ola-account-m .ola-account__avatar {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}

/* --- Bookmark buttons ---------------------------------------------------------------------- */

.ola-mark {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.ola-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: transform .2s var(--ol-ease-out, ease-out);
}

.ola-mark.is-on svg {
  fill: currentColor;
}

.ola-mark:active svg {
  transform: scale(.88);
}

/* On photos: the glass of the tiles' arrow. It appears while the pointer is over the office, the way
   Pinterest shows "Save"; a saved office keeps its filled mark, so you can see what you've kept. */
.c-top-articles__item,
.c-articles__img {
  position: relative;
}

.ola-mark--photo {
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .24);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  opacity: 0;
  transition: opacity .2s var(--ol-ease, ease), background-color .2s var(--ol-ease, ease);
}

.ola-mark--photo:hover {
  background: rgba(0, 0, 0, .4);
}

.c-top-articles__item:hover .ola-mark--photo,
.c-articles__item:hover .ola-mark--photo,
.ola-mark--photo.is-on,
.ola-mark--photo:focus-visible {
  opacity: 1;
}

/* No pointer to hover with on phones: there the article's button does the saving */
@media (hover: none) {
  .ola-mark--photo:not(.is-on) {
    display: none;
  }
}

.ola-mark--tile {
  top: var(--ol-hero-inset, 20px);
  right: var(--ol-hero-inset, 20px);
}

.ola-mark--card {
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
}

.ola-mark--card svg {
  width: 16px;
  height: 16px;
}

/* The article: a quiet pill like the share buttons beside it. The share list steps aside (display: contents)
   so the pill and its buttons are one row and, when narrow, wrap as one. */
.b-content .b-meta__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.b-content .b-meta__right .social-likes {
  display: contents;
}

.b-content .b-meta__right .social-likes__widget {
  margin: 0;
}

/* Facebook's like widget renders nothing here (0px wide) but would still take a gap */
.b-content .b-meta__right .fb-like {
  display: none;
}

.ola-mark--pill {
  display: inline-flex;
  gap: 6px;
  height: 30px;
  padding: 0 14px 0 12px;
  border-radius: var(--ol-radius-pill, 980px);
  background: var(--ol-fill, #f5f5f7);
  color: var(--ol-text, #1d1d1f);
  font: 500 var(--ol-fs-footnote, 13px)/1 var(--ol-font, -apple-system, BlinkMacSystemFont, sans-serif);
  letter-spacing: -.006em;
  white-space: nowrap;
  transition: background-color .2s var(--ol-ease, ease), color .2s var(--ol-ease, ease);
}

.ola-mark--pill:hover {
  background: var(--ol-fill-2, #e8e8ed);
}

.ola-mark--pill svg {
  width: 15px;
  height: 15px;
}

.ola-mark--pill.is-on {
  background: var(--ol-accent-tint, rgba(58, 154, 217, .08));
  color: var(--ol-accent, #3a9ad9);
}

/* --- Toast ------------------------------------------------------------------------------------ */

.ola-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100000;
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--ol-radius-pill, 980px);
  background: rgba(29, 29, 31, .92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #fff;
  font: 500 14px/1.3 var(--ol-font, -apple-system, BlinkMacSystemFont, sans-serif);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .25s var(--ol-ease, ease), transform .25s var(--ol-ease-out, ease-out), visibility .25s;
}

.ola-toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.ola-toast a {
  color: #64d2ff;
  font-weight: 600;
}

/* --- Sheet ---------------------------------------------------------------------------------- */

.ola-sheet {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, .32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ol-ease, ease), visibility .25s;
}

.ola-sheet.is-open {
  opacity: 1;
  visibility: visible;
}

.ola-sheet__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 100%;
  overflow: auto;
  padding: 36px 32px 28px;
  border-radius: 20px;
  background: var(--ol-surface, #fff);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
  color: var(--ol-text, #1d1d1f);
  font-family: var(--ol-font, -apple-system, BlinkMacSystemFont, sans-serif);
  text-align: center;
  transform: translateY(12px) scale(.98);
  transition: transform .35s var(--ol-ease-out, ease-out);
}

.ola-sheet.is-open .ola-sheet__card {
  transform: none;
}

.ola-sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ol-fill, #f5f5f7);
  color: var(--ol-text-2, #6e6e73);
  font: 400 20px/30px var(--ol-font, -apple-system, BlinkMacSystemFont, sans-serif);
  cursor: pointer;
}

.ola-sheet__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 0 16px;
  border-radius: 16px;
  background: var(--ol-accent-tint, rgba(58, 154, 217, .08));
  color: var(--ol-accent, #3a9ad9);
}

.ola-sheet__icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ola-sheet__icon--line svg {
  fill: none;
  stroke-width: 2;
}

.ola-sheet h2 {
  margin: 0 0 8px;
  color: var(--ol-text, #1d1d1f);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--ol-track-display, -.018em);
}

.ola-sheet p {
  margin: 0 0 22px;
  color: var(--ol-text-2, #6e6e73);
  font-size: 15px;
  line-height: 1.47;
}

.ola-sheet p b {
  color: var(--ol-text, #1d1d1f);
  font-weight: 600;
  word-break: break-all;
}

/* Google: white with its four-color G, as its guidelines ask */
.ola-sheet__google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--ol-radius-pill, 980px);
  background: var(--ol-surface, #fff);
  box-shadow: inset 0 0 0 1px var(--ol-hairline, #d2d2d7);
  color: var(--ol-text, #1d1d1f);
  font: 600 16px var(--ol-font, -apple-system, BlinkMacSystemFont, sans-serif);
  letter-spacing: -.01em;
  cursor: pointer;
}

.ola-sheet__google:hover {
  background: var(--ol-fill, #f5f5f7);
}

.ola-sheet__google svg {
  width: 19px;
  height: 19px;
}

.ola-sheet__or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--ol-text-3, #86868b);
  font-size: 13px;
}

.ola-sheet__or::before,
.ola-sheet__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ol-separator, rgba(0, 0, 0, .08));
}

.ola-sheet input[type=email] {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 0 0 14px;
  padding: 0 16px;
  border: 1px solid var(--ol-hairline, #d2d2d7);
  border-radius: var(--ol-radius, 12px);
  background: var(--ol-surface, #fff);
  color: var(--ol-text, #1d1d1f);
  font: 400 16px var(--ol-font, -apple-system, BlinkMacSystemFont, sans-serif);
}

.ola-sheet input[type=email]:focus {
  border-color: var(--ol-accent, #3a9ad9);
  box-shadow: 0 0 0 4px var(--ol-focus-halo, rgba(58, 154, 217, .24));
  outline: 0;
}

.ola-sheet__button {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: var(--ol-radius-pill, 980px);
  background: var(--ol-accent, #3a9ad9);
  color: #fff;
  font: 600 16px var(--ol-font, -apple-system, BlinkMacSystemFont, sans-serif);
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background-color .2s var(--ol-ease, ease);
}

.ola-sheet__button:hover {
  background: var(--ol-accent-hover, #2785c6);
}

.ola-sheet__button:disabled {
  opacity: .6;
  cursor: default;
}

.ola-sheet .ola-sheet__fine {
  margin: 16px 0 0;
  color: var(--ol-text-3, #86868b);
  font-size: 12px;
}

.ola-sheet__fine a,
.ola-sheet__text {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ol-accent, #3a9ad9);
  font: inherit;
  cursor: pointer;
}

.ola-sheet__later {
  margin: 8px 0 0;
  padding: 8px 12px;
  color: var(--ol-text-2, #6e6e73);
  font-size: 15px;
  font-weight: 500;
}

.ola-sheet__offer {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: var(--ol-radius, 12px);
  background: var(--ol-fill, #f5f5f7);
  text-align: left;
}

.ola-sheet__offer b {
  display: block;
  margin: 0 0 2px;
  color: var(--ol-text, #1d1d1f);
  font-size: 15px;
  font-weight: 600;
}

.ola-sheet__offer span {
  color: var(--ol-text-2, #6e6e73);
  font-size: 14px;
}

/* Settings: deleting the account, set apart and spelled out */
.ola-sheet__step--settings {
  text-align: left;
}

.ola-sheet__danger {
  padding: 18px;
  border-radius: var(--ol-radius, 12px);
  box-shadow: inset 0 0 0 1px var(--ol-separator, rgba(0, 0, 0, .08));
}

.ola-sheet__danger b {
  display: block;
  margin: 0 0 2px;
  color: var(--ol-text, #1d1d1f);
  font-size: 15px;
  font-weight: 600;
}

.ola-sheet__danger span {
  display: block;
  margin: 0 0 14px;
  color: var(--ol-text-2, #6e6e73);
  font-size: 14px;
  line-height: 1.4;
}

.ola-sheet__delete {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--ol-radius-pill, 980px);
  background: rgba(215, 0, 21, .08);
  color: #d70015;
  font: 600 14px var(--ol-font, -apple-system, BlinkMacSystemFont, sans-serif);
  cursor: pointer;
  transition: background-color .2s var(--ol-ease, ease);
}

.ola-sheet__delete:hover {
  background: rgba(215, 0, 21, .14);
}

/* Phones: the sheet rises from the bottom edge */
@media (max-width: 600px) {
  .ola-sheet {
    place-items: end center;
    padding: 0;
  }

  .ola-sheet__card {
    max-width: none;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
}

/* --- The Bookmarks page --------------------------------------------------------------------- */

.ola-empty {
  padding: 48px 24px;
  border-radius: var(--ol-radius-lg, 16px);
  background: var(--ol-surface, #fff);
  text-align: center;
}

.ola-empty p {
  max-width: 420px;
  margin: 0 auto;
  color: var(--ol-text-2, #6e6e73);
  font-size: 17px;
  line-height: 1.47;
}

.ola-empty .ola-sheet__button {
  width: auto;
  margin-top: 20px;
  padding: 0 28px;
}
