/* Our own additions on top of content.css: header states, search bar, search results, 404. */

/* header bar is see-through over the banner and turns solid once the page scrolls */
#site-header.is-scrolled .zDUgLc { opacity: 1; }

/* ---------- search bar (opens over the header) ---------- */
.searchbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 76px; background: #e6e6e6;
  display: flex; align-items: center; justify-content: center;
}
.searchbar[hidden] { display: none; }
.searchbar__back {
  position: absolute; left: 18px; top: 14px; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: none; cursor: pointer; padding: 12px;
}
.searchbar__back svg, .searchbar__clear svg, .searchbar__icon { width: 24px; height: 24px; fill: rgba(0, 0, 0, .54); }
.searchbar__box {
  width: 722px; max-width: calc(100% - 150px); height: 50px; background: #fff; border-radius: 2px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .12), 0 1px 5px 0 rgba(0, 0, 0, .2);
  display: flex; align-items: center; padding: 0 12px 0 13px;
}
.searchbar__box input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; margin-left: 24px;
  font: 400 16px/24px Roboto, Arial, sans-serif; color: rgba(0, 0, 0, .87); -webkit-appearance: none; appearance: none;
}
.searchbar__box input::-webkit-search-cancel-button { display: none; }
.searchbar__clear { border: 0; background: none; cursor: pointer; padding: 0; width: 24px; height: 24px; }
body.search-open #content::after {
  content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 150;
}
@media (max-width: 767px) {
  /* phone: one white box with the back arrow inside it */
  .searchbar { height: 76px; }
  .searchbar__back { left: 18px; top: 14px; z-index: 1; }
  .searchbar__box { width: calc(100% - 16px); max-width: none; padding-left: 48px; }
  .searchbar__icon, .searchbar__clear { display: none; }
  .searchbar__box input { margin-left: 21px; }
  .search-results { padding-left: 0; padding-right: 0; }
}

/* ---------- search results page ---------- */
body.search-page { background: #e6e6e6; }
body.search-page #site-header { display: none; }
body.search-page .fktJzd, body.search-page .UtePc { background: #e6e6e6; }
.search-results { padding: 85px 16px 40px; font-family: Roboto, Arial, sans-serif; }
.search-results__card { max-width: 720px; margin: 0 auto; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.search-results__tabs { padding: 0 31px; border-bottom: 1px solid #e0e0e0; }
.search-results__tab {
  display: inline-block; padding: 20px 0 18px; font: 500 15px/20px "Google Sans", Roboto, Arial, sans-serif;
  color: #3949ab; border-bottom: 3px solid #3949ab;
}
.result { display: block; padding: 28px 25px 22px; border-bottom: 1px solid #e0e0e0; text-decoration: none; }
.result:hover .result__title { text-decoration: underline; }
.result__title { font: 400 18px/24px Roboto, Arial, sans-serif; color: #3949ab; margin-bottom: 8px; }
.result__title b { font-weight: 500; }
.result__snippet { font: 400 14px/16px Roboto, Arial, sans-serif; color: rgba(0, 0, 0, .87); }
.result--none { color: rgba(0, 0, 0, .87); font-size: 14px; }

/* ---------- 404 ---------- */
.notfound { padding: 140px 24px; text-align: center; font-family: Montserrat, Arial, sans-serif; color: #734332; }

/* ---------- comments under a post (src/js/comments.js) ---------- */
.jc-comments {
  /* full width in the page's own pink, with the words in the same column as the post's text */
  background: #f1e1dd; padding: 8px max(clamp(19px, 5.8vw, 60px), calc(50% - 570px)) 72px;
  font: 400 16px/1.5 Montserrat, Arial, sans-serif; color: #000;
  --jc-brown: #7a4632; --jc-panel: #fcf5f2; --jc-line: #3d2a24;
}
.jc-comments:empty { display: none; }
.jc-title { font: 700 24px/1.3 Montserrat, Arial, sans-serif; margin: 0 0 14px; color: #000; }
.jc-form, .jc-chain { background: var(--jc-panel); border-radius: 14px; }
.jc-form { padding: 20px; display: flex; flex-direction: column; gap: 16px; margin: 0 0 20px; }
.jc-input {
  box-sizing: border-box; width: 100%; padding: 9px 15px; border: 1px solid var(--jc-line); border-radius: 8px; background: #fffaf8;
  font: 400 16px/1.4 Montserrat, Arial, sans-serif; color: #000; -webkit-appearance: none; appearance: none;
}
.jc-input::placeholder { color: #6b5a55; opacity: 1; }
.jc-input:focus-visible { outline: 2px solid var(--jc-brown); outline-offset: 1px; }
.jc-text { resize: vertical; min-height: 106px; display: block; }
.jc-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.jc-check:empty { display: none; }
.jc-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; }
.jc-send {
  min-width: 170px; height: 42px; padding: 0 28px; border: 0; border-radius: 6px; background: var(--jc-brown); color: #fff;
  font: 700 16px/1 Montserrat, Arial, sans-serif; cursor: pointer;
}
.jc-send:hover { background: #683a29; }
.jc-send:disabled { opacity: .6; cursor: default; }
.jc-send:focus-visible, .jc-reply:focus-visible, .jc-cancel:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.jc-cancel, .jc-reply { border: 0; background: none; padding: 0; cursor: pointer; color: var(--jc-brown); font: 700 14px/1.4 Montserrat, Arial, sans-serif; }
.jc-cancel:hover, .jc-reply:hover { text-decoration: underline; }
.jc-note { color: var(--jc-brown); font-size: 15px; }
.jc-chain { padding: 16px 20px; margin: 0 0 20px; }
.jc-comment { display: flex; gap: 22px; align-items: flex-start; }
.jc-avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--jc-brown); color: #fff;
  display: flex; align-items: center; justify-content: center; font: 400 26px/1 Montserrat, Arial, sans-serif; margin-top: 2px;
}
.jc-body { min-width: 0; flex: 1; }
.jc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 9px; }
.jc-name { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.jc-date { color: var(--jc-brown); font-size: 17px; }
.jc-badge { background: var(--jc-brown); color: #fff; border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 700; align-self: center; }
.jc-words { font-size: 17px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 1px 0 4px; }
.jc-comment--reply { margin: 16px 0 0 78px; padding-top: 16px; border-top: 1px solid #ead9d4; gap: 16px; }
.jc-comment--reply .jc-avatar { width: 40px; height: 40px; font-size: 19px; }
.jc-comment--reply .jc-name { font-size: 16px; }
.jc-comment--reply .jc-date, .jc-comment--reply .jc-words { font-size: 16px; }
.jc-form--reply { margin: 16px 0 4px 78px; padding: 16px 0 0; border-top: 1px solid #ead9d4; border-radius: 0; background: none; gap: 12px; }
.jc-form--reply .jc-text { min-height: 80px; }
.jc-empty { margin: 0 0 20px; color: #6b5a55; }
@media (max-width: 600px) {
  .jc-title { font-size: 22px; }
  .jc-form { padding: 14px; gap: 12px; }
  .jc-chain { padding: 14px; }
  .jc-comment { gap: 12px; }
  .jc-avatar { width: 40px; height: 40px; font-size: 19px; }
  .jc-comment--reply, .jc-form--reply { margin-left: 20px; }
  .jc-comment--reply .jc-avatar { width: 32px; height: 32px; font-size: 16px; }
  .jc-send { min-width: 0; flex: 1 1 100%; }
}
