/* Shared 木 silhouette, traced from the approved /travel/ screenshot.
   Page styles continue to own hover, focus, active, shadows and motion. */
:where(a.brand, a.site-brand, a.publisher, a.learning-site-brand, a.tools-shell-brand, a.notebook-brand)
:is(.mark, .site-mark, .brandmark, .publisher-mark, .publisher-stamp, .learning-site-brand__mark, .tools-shell-mark, .notebook-brand-mark) {
  position: relative;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  border-width: 1.6px !important;
  border-style: solid !important;
  border-radius: 0 !important;
}

/* Hide the text drawing while keeping its accessible text in the HTML.
   Specificity also covers N2 reading-mode's important font size. */
:is(header, nav, aside, .site-head, .sitehead, .site-header, .site-nav, .header, .tools-shell-head)
:is(a.brand, a.site-brand, a.publisher, a.learning-site-brand, a.tools-shell-brand, a.notebook-brand)
:is(.mark, .site-mark, .brandmark, .publisher-mark, .publisher-stamp, .learning-site-brand__mark, .tools-shell-mark, .notebook-brand-mark) {
  font-size: 0 !important;
}
:where(a.brand, a.site-brand, a.publisher, a.learning-site-brand, a.tools-shell-brand, a.notebook-brand)
:is(.mark, .site-mark, .brandmark, .publisher-mark, .publisher-stamp, .learning-site-brand__mark, .tools-shell-mark, .notebook-brand-mark)::before {
  content: "";
  position: absolute;
  inset: 21.5%;
  background-color: currentColor;
  -webkit-mask: url("./wood-glyph.svg") center / contain no-repeat;
  mask: url("./wood-glyph.svg") center / contain no-repeat;
  pointer-events: none;
}

/* Keep specificity below each page's interaction rules. */
.site-head .brand .mark,
.brand .site-mark,
.header .brand .mark,
.sitehead .brand .brandmark,
.site-nav .site-brand .site-mark,
.site-header .site-brand .site-mark,
.learning-site-brand .learning-site-brand__mark,
.tools-shell-brand .tools-shell-mark,
.publisher .publisher-mark,
.publisher .publisher-stamp,
.publisher .mark,
.notebook-brand .notebook-brand-mark {
  color: #242a32;
  border-color: #243b46;
  background: #fff;
}

/* Compact identity for the existing JLPT study sidebar. */
.notebook-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #242a32;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.notebook-brand .notebook-brand-mark {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  font-size: 20px;
}
.notebook-brand:focus-visible { outline: 2px solid #243b46; outline-offset: 4px; }
