/* Legacy theme selectors and scoped override order are intentional. */
/* stylelint-disable selector-class-pattern, selector-id-pattern, no-descending-specificity */
 
/* AyAyNTR 1.0.1: contain content, retain local table/code scrolling. */
#header {
  padding-block: 28px 20px;
}

.site_title,
.site_title h1,
.post .title,
.page-title,
#sidebar .widget {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.site-logo,
#header_image img {
  max-inline-size: 100%;
}

/* The inherited 298px RSS frame exceeded narrow preview/sidebar widths. */
#rss_border {
  width: 100%;
  max-inline-size: 100%;
}

.entry {
  display: flow-root;
  overflow: visible;
}

.entry figure,
.entry .wp-block-table,
.entry .wp-block-code,
.entry .alignwide,
.entry .alignfull {
  min-inline-size: 0;
  max-inline-size: 100%;
  margin-inline: 0;
}

.entry img,
.entry video,
.entry iframe,
.entry svg {
  max-inline-size: 100%;
  height: auto;
}

.entry pre,
.entry table,
.entry .wp-block-table,
.entry .wp-block-code {
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-x: auto;
}

.entry pre code {
  white-space: pre;
  overflow-wrap: normal;
}

.entry :not(pre) > code {
  overflow-wrap: anywhere;
}

@media (901px <= width <= 1100px) {
  #wrapper {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }
}

@media (width <= 900px) {
  #wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (width <= 1024px) {
  .nav-inside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
    grid-template-areas: "toggle search" "menu menu";
    gap: 8px 16px;
    padding-block: 10px;
  }

  #menus {
    display: contents;
    padding: 0;
  }

  #menus ul.menus-dt {
    grid-area: menu;
    position: static;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    margin: 0;
    background: var(--nav);
    overflow: visible;
  }

  .ayayntr-js #menus ul.menus-dt {
    display: none;
  }

  .ayayntr-js #menus ul.menus-dt.is-open {
    display: flex;
  }

  .ayayntr-js .menu-toggle {
    grid-area: toggle;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    color: #fff;
    background: #244864;
    border: 1px solid #60859d;
    border-radius: 4px;
    font-weight: 650;
  }

  #menus li:first-child {
    padding-top: 0;
  }

  #menus ul ul,
  #menus ul ul ul {
    position: static;
    display: block;
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding-inline-start: 16px;
    box-shadow: none;
  }

  #menus ul ul li,
  #menus ul ul ul li {
    width: auto;
    min-width: 0;
    margin: 0;
    border: 0;
  }

  #menus a,
  #menus ul ul a,
  #menus ul ul ul a {
    width: auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #search {
    grid-area: search;
    width: 100%;
    min-width: 0;
    padding: 0;
  }
}

@media (width <= 600px) {
  .nav-inside {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "toggle" "menu" "search";
  }

  #header {
    padding-block: 24px 20px;
  }
}


/* Ordinary links: decoration follows pointer and keyboard interaction. */
a,
a:visited {
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.site_title h1 a:hover,
.site_title h1 a:focus-visible,
.post .title a:focus-visible {
  text-decoration: underline;
}

/* stylelint-enable selector-class-pattern, selector-id-pattern, no-descending-specificity */
