/* == Root styles ========================================================== */
:root {
  --speed: 280ms;
  --easing: cubic-bezier(.2,.8,.2,1);
}

/* for scroll lock */
.no-scroll { overflow: hidden; }

/* == Basic Styles ========================================================= */

html {
  /* Setting a minimum width so that the contents will not get distorted with very small screens. */
  min-width: 300px;
  margin-bottom: 0;
  padding-bottom: 0;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--color01);
  background: var(--color01);
}

#main-wrapper {
  background: var(--color05);
}

a {
  color: var(--color02);
  text-decoration: none;
}
a:visited {
  color: var(--color01);
}

[id^="more-"] {
  scroll-margin-top: 200px; /* Fix "read more" link position for fixed header */
}

h1 {
  font-size: 1.6rem;
  margin-left: 0;
  margin-right: 0;
  padding: 2px 2px;
  border-top: dashed 1px var(--color03);
  width: 95%;
}
h2 {
  font-size: 1.4rem;
}


/* -- Header Section --------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  height: 120px; 
  background: var(--color02);
  color: var(--color05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 100; 
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}

#header {
  background-size: cover;
  background-position: center;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  margin: 0;
  margin-top: 10px;
}

.brand-logo {
  margin: 0;  
  background: var(--color06);
  box-shadow: 0 0 10px 10px var(--color06);
  border-radius: 300px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-top-right-radius: 300px;
  border-bottom-right-radius: 300px;
}

.brand-logo-img, .brand-logo-img2 {
  max-width: 250px;
}

.brand {
  font-weight: 700;
  letter-spacing: .2px;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  margin-left: 0.2rem;
  /* Put shadow around text for better readability */
  text-shadow:
  4px 4px 4px var(--color01), -4px -4px 4px var(--color01),
  -4px 4px 4px var(--color01),  4px -4px 4px var(--color01),
  4px 0 4px var(--color01), -4px  0 4px var(--color01),
  0 4px 4px var(--color01),  0 -4px 4px var(--color01);
}


/* -- Hamburger Menu --------------------------------------------- */
/* Button (on the right) */
.hamburger {
  appearance: none;
  border: 0; background: transparent;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  cursor: pointer; outline-offset: 2px;
}
.hamburger:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color05) 40%, white);
}
.hamburger-bars {
  position: relative;
  width: 24px; height: 2px;
  background: var(--color05);
  border-radius: 1px;
  transition: background var(--speed) var(--easing);
}
.hamburger-bars::before,
.hamburger-bars::after {
  content: "";
  position: absolute; left: 0;
  width: 24px; 
  height: 2px; 
  background: var(--color05);
  border-radius: 1px;
  transition: transform var(--speed) var(--easing), top var(--speed) var(--easing), opacity var(--speed) var(--easing);
}
.hamburger-bars::before { top: -7px; }
.hamburger-bars::after  { top:  7px; }
.hamburger[aria-expanded="true"] .hamburger-bars { background: transparent; }
.hamburger[aria-expanded="true"] .hamburger-bars::before { top: 0; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger-bars::after  { top: 0; transform: rotate(-45deg); }

/* Hamburger menu (fixed below header) */
.nav-wrap {
  position: fixed;
  top: var(--header-h);   /* Fixed below header */
  left: 0; right: 0;
  overflow: hidden;       /* For height animation */
  height: 0;              /* JavaScript will handle this */
  transition: height var(--speed) var(--easing);
  background: var(--color02);
  color: var(--color05);
  will-change: height;
  z-index: 200;           /* Prioritize over header */
  border-bottom: 1px solid rgba(255,255,255,.08);
}
/* Menu scroll area (content) */
.nav {
  padding: 12px;
  display: grid; gap: 6px;
  max-height: calc(100dvh - var(--header-h)); /* Ensure it doesn't exceed viewport height */
  overflow: auto; /* Scroll if content exceeds */
}
.nav a {
  display: block;
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--color05);
  text-decoration: none;
  background: var(--color01);
  border: 1px solid rgba(255,255,255,.06);
}
.nav a:active { transform: scale(.98); }

@media (prefers-reduced-motion: reduce) {
  .nav-wrap { transition-duration: 1ms; }
  .hamburger-bars::before, .hamburger-bars::after { transition-duration: 1ms; }
}

/* For accessibility: Only visible to screen readers */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Form layout (stacked vertically) */
.nav-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

/* Styles for input / select / button */
.field, .select, .btn {
  width: 100%;
  font: inherit;
  border-radius: 10px;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--color04);
  color: var(--color01);
}

.field::placeholder { color: var(--color01); }

.select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color01) 50%),
    linear-gradient(135deg, var(--color01) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px),
                       calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.btn {
  background: var(--color01);
  color: var(--color05); 
  border-color: transparent;
  font-weight: 700;
  cursor: pointer;
}
.btn:active { transform: scale(.98); }


/* -- Sidebar ---------------------------------------------------- */
/* Note! This is hidden on mobile version, only styles are provided. */
#pc-sidebar {
  position: sticky; top: 156px; z-index: 18;
  background: var(--color05);
  min-height: 300px;
  margin: 6px;
  border: 1px solid var(--color01);
  padding: 0;
  font-size: 0.9rem;
}
.side-title {
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  color: var(--color01);
  background-color: var(--color03);
  margin: 0;
  padding: 3px;
  display: flex;
  align-items: baseline; 
  justify-content: space-between;
  padding-left: 2rem;
  padding-right: 2rem;
}
.side-title span, .side-title i {
  font-weight: bold;
}
.side-content {
  padding-top: 6px;
  font-size: 0.8rem;
}
.side-content a {
  color: var(--color01);
  text-decoration: none;
}

/* calendar ---------------------------------- */
/* Whole calendar */
.calendar {
  width:210px;
  font-size: 10px;
  letter-spacing : 1px;
  padding: 0px 0px 6px 0px;
}
/* Calendar cells */
.cell {
  border: 1px solid var(--color03);
  font-size: 10px;
  width:     15px;
  height:    15px;
}
/* Cell for "current day" */
.cell_today {
  font-weight: bold;
}
/* Cell for Sundays */
.cell_sunday, .cell_sunday a:link, .cell_sunday a:visited, .cell_sunday a:active {
  color: red;
}
/* Cell for Saturdays */
.cell_saturday, .cell_saturday a:link, .cell_saturday a:visited, .cell_saturday a:active {
  color: darkcyan;
}
.cell a:link, .cell a:visited, .cell a:active {
  text-decoration:underline;
}

#wp-calendar {
    border-collapse: collapse;
    border-top-width: 1px;
    border-right-width: 1px;
    border-top-style: solid;
    border-right-style: solid;
    width: 90%;
    margin-left: 0px;
    margin: auto;
    padding: auto;
}
#wp-calendar thead tr th {
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-bottom-style: solid;
    border-left-style: solid;
}
/* Header for Saturdays */
#wp-calendar thead tr th:nth-child(7){
  background-color: lightskyblue;
}
/* Header for Sundays */
#wp-calendar thead tr th:nth-child(1){
  background-color: lightpink;
}
#wp-calendar td {
    text-align: center;
    padding: 0px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-bottom-style: solid;
    border-left-style: solid;
}
#wp-calendar caption {
    font-weight: bold;
    text-align: center;
}
#today {
    background-color: var(--color03);
}
#calendar-nav {
  margin: 6px 12px 8px 12px;
  display: flex;
  justify-content: space-between;
}
/* sidebar list contents --------------------- */
.side-content ul {
  margin-top: 0; 
  margin-bottom: 0;
  padding-left: 2rem;
}
.side-content ul li, .side-content ul li ul li {
  margin-bottom: 6px;
} 
/* side dropdown ----------------------------- */
.archive-select {
  margin-top: 2px;
  margin-bottom: 8px;
  margin-right: 1px;
  display: flex;
  justify-content: center;
}
#archives-dropdown {
  width: 200px;
  padding: 0.5em;
  font-size: 14px;
  color: var(--color01);
  border: 1px solid var(--color01);
  border-radius: 4px;
  background-color: var(--color05);
  cursor: pointer;
}
#archives-dropdown:focus {
  border-color: var(--color04);
  outline: none;
  box-shadow: 0 0 5px var(--color02);
}
/* side search ------------------------------- */
#search-container {
  margin-top: 2px;
  margin-bottom: 8px;
  margin-left: 10px;
  margin-right: 10px;
  display: flex;
  justify-content: center;
}
#s {
  width: 130px;
  padding: 0.5em;
  font-size: 12px;
  border: 1px solid var(--color01);
  background-color: var(--color05);
  color: var(--color01);
  border-radius: 4px;
  transition: border 0.3s, box-shadow 0.3s;
  margin-right: 10px;
}
#s:focus {
  border-color: var(--color02);
  outline: none;
  box-shadow: 0 0 5px var(--color01);
}
#searchsubmit {
  padding: 0.5em 1em;
  font-size: 12px;
  color: var(--color05);
  background-color: var(--color01);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
#searchsubmit:hover {
  background-color: var(--color03);
  color: var(--color01);
}


/* -- Article Navigation ----------------------------------------- */
.article-nav {
  background: var(--color03);
  color: var(--color01);
  padding: 4px;
  border-radius: var(--radius);
  margin: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr; /* Default: 1 column (home) */
}
/* If 2 columns (prev + home, or home + next) */
.article-nav:has(.nav-item.prev):not(:has(.nav-item.next)),
.article-nav:has(.nav-item.next):not(:has(.nav-item.prev)) {
  grid-template-columns: 1fr 1fr;
}
/* If 3 columns (prev + home + next) */
.article-nav:has(.nav-item.prev):has(.nav-item.home):has(.nav-item.next) {
  grid-template-columns: 1fr 1fr 1fr; 
}
.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color05);
  background: var(--color02);
  border: 1px solid var(--color01);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 40px;
  text-align: center;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nav-item:visited {
  color: var(--color05);
}
.nav-item:hover {
  color: var(--color05);
  background: var(--color01);
  border-color: var(--color05);
  transform: translateY(-1px);
}
.nav-item:focus-visible {
  outline: 2px solid var(--color02);
  outline-offset: 2px;
}
.nav-item:active {
  transform: translateY(0);
}

/* Bring text above icon */
.nav-item .inner {
  display: inline-flex;
  flex-direction: column;   /* This will stack the text above the icon */
  align-items: center;
  gap: 6px;
  line-height: 1.1;
}
.nav-item .label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--nav-fg);
  white-space: nowrap;
}
.nav-item .icon {
  font-size: 18px;
  color: var(--color05);
}


/* -- Articles --------------------------------------------------- */
main {
  background-color: var(--color04);
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
}
.article-date {
  font-size: 0.9rem;
  color: var(--color01);
  display: block;
  margin: 0;
  padding: 0.5rem;
}
.article-title, .comment-section-header {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0.5rem;
  color: var(--color01);
}
.article-title a, a.more-link, .article-comments a, .article-author a {
  text-decoration: none;
  color: var(--color01);
}
.article-body {
  margin: 0.5rem;
  color: var(--color01);
  line-height: 2.2;
}
.article-body hr {
  border: none;
  border-top: 1px dashed var(--color03);
  margin: 1.5rem 2rem 0 2rem;
}
.article-body ul li, .article-body ol li {
  margin-bottom: 1rem;
  line-height: 1.8;
}
.article-body a {
  color: var(--color02);
  text-decoration: none;
}
.article-body a:visited {
  color: var(--color02);
}
.article-body a:hover {
  color: var(--color01);
}
.article-author, .article-comments {
  margin: 0.5rem;
}
.article-author {
  border-left: 2px solid var(--color02);
  border-right: 2px solid var(--color02);
  padding-left: 0.7rem;
  padding-right: 0.6rem;
  padding-bottom: 0.2rem;
  margin-right: 0;
}
.article-comments {
  border-right: 2px solid var(--color02);
  padding-left: 0.3rem;
  padding-right: 0.6rem;
  padding-bottom: 0.2rem;
  margin-left: 0;
}
.article-hr {
  border: none;
  border-top: 1px solid var(--color03);
  margin: 1rem 1rem;
}

/* Article images */
.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 1.5em auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-body img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.article-footer {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

/* -- Comments --------------------------------------------------- */
.comment-area {
  padding: 1rem;
}
.comment-section-header {
  margin: 1rem 0 0.5rem 0;
}
.comment-item {
  margin-bottom: 1rem;
}
.comment-content {
  margin-bottom: 0.5rem;
}
.comment-footer {
  display: flex;
  justify-content: start;
  font-size: 0.8rem;
}
.comment-author, .comment-date {
  margin: 0.5rem;
}
.comment-author {
  border-left: 2px solid var(--color02);
  border-right: 2px solid var(--color02);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-bottom: 0.1rem;
  margin-right: 0;
}
.comment-date {
  border-right: 2px solid var(--color02);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-bottom: 0.1rem;
  margin-left: 0;
}
.comment-hr {
  border: none;
  border-top: 1px dashed var(--color03);
  margin: 0.3rem 0 1.5rem 0;
  width: 60%;
}
.comments-hr {
  border: none;
  border-top: 1px solid var(--color03);
  margin: 0;
  margin-top: 1rem;
}
#respond {
  margin-top: 1.5rem;
}
.comment-form-comment {
  margin-right: 1.2rem;
}
#comment {
  min-height: 100px;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid var(--color01);
  border-radius: 8px;
  background-color: var(--color05);
  color: var(--color01);
  resize: vertical;
}
#comment:focus {
  border-color: var(--color02);
  outline: none;
  box-shadow: 0 0 5px var(--color01);
}
#author, #email {
  width: 48%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid var(--color01);
  border-radius: 8px;
  background-color: var(--color05);
  color: var(--color01);
}
#author:focus, #email:focus {
  border-color: var(--color02);
  outline: none;
  box-shadow: 0 0 5px var(--color01);
}
#submit {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: var(--color05);
  background-color: var(--color01);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}
#submit:hover {
  background-color: var(--color03);
  color: var(--color01);
}
.comment-entry {
  margin-bottom: 3rem;
}

/* -- Search Results --------------------------------------------- */
.search-results-wrapper {
  margin: 2rem 1rem;
  text-align: center;
}

.search-results {
  display: inline;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0rem;
  color: var(--color01);
  text-align: left;
}
.search-results-hr {
  border: none;
  border-top: 1px solid var(--color03);
  margin: 1rem;
}

/* -- Footer ----------------------------------------------------- */
footer {
  background-color: var(--color01);
  color: var(--color05);
  margin-bottom: 0;
  padding-top: 3rem;
}

.brand-logo-footer {
  padding-top: 1rem;
  margin-left: 1rem;
}
.footer-logo-spotlight {
  display: block;
  position: absolute;
  background: var(--color06);
  box-shadow: 0 0 80px 80px var(--color06);
  border-radius: 300px;
  width: 60px;
  height: 5px;
  margin-left: 100px;
  margin-top: -50px;
}
.footer-logo-img {
  position: relative;
  z-index: 1;
}

.footer-links {
  padding-top: 2rem;
}

.footer-links ul {
  list-style: none;
  padding-left: 1.5rem;
}
.footer-links ul li {
  padding-bottom: 1.5rem;
}
.footer-links ul li a {
  text-decoration: none;
  color: var(--color05);
  font-weight: bold;
} 

.footer-powered-by {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--color05);
}

.footer-end {
  text-align: center;
  padding: 0 0 1rem 0;
  font-size: 0.9rem;
  color: var(--color05);
}
.footer-end p {
  margin: 0.2rem;
}

/* -- Other ------------------------------------------------------ */
/* Below are not displayed for mobile view */
#header-tail, #pc-sidebar {
  display: none;
}

/* -- Special pages -------------------------- */
.et {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  margin-top: 2rem;
  padding-top: 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color01);
  border-top: 1px dashed var(--color02);

}
.eb {
  margin-left: 1rem;
  margin-right: 1rem;
}



/* ========================= Styles for tablet screen start. ========================= */
@media screen and (min-width: 768px) {

  /* -- Header ------------------------------- */
  /* Slightly taller header for tablet */
  .header {
    height: 160px;
  }

  /* -- Hamburger ---------------------------- */
  /* Larger hamburger menu for tablet */
  .hamburger {
    width: 64px;
    height: 64px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px 10px rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  }
  .hamburger-bars,
  .hamburger-bars::before,
  .hamburger-bars::after {
    width: 32px;
    height: 3px;
    background: var(--color01);
  }
  .hamburger-bars::before { top: -9px; }
  .hamburger-bars::after  { top:  9px; }
  .hamburger:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--color01) 40%, white);
  }

  /* -- Navigation --------------------------- */
  /* Wider navigation for tablet with more space */
  .nav {
    grid-template-columns: 1fr 1fr 1fr 1fr; /* 4 columns layout for links */
  }
  .nav-form {
    grid-template-columns: 3fr 1fr; 
    align-items: center;
  }
  #navSearchForm {
    grid-column: span 4;
  }
  .archive-select {
    grid-column: span 4;
  }
  .nav a {
    margin-top: 12px;
    margin-bottom: 12px;
    text-align: center;
  }

  /* -- Search Results --------------------------------------------- */
  .search-results {
    display: block;
    font-size: 1.4rem;
    text-align: center;
  }

  /* -- Footer ------------------------------- */
  /* Footer layout for tablet: Use grid to make use of available space */
  footer {
    display: grid;
    grid-template-columns: 250px auto;
  }
  .footer-links ul {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
    margin-right: 2rem;
  }
  .footer-links ul li {
    padding-left: 2.5rem;
  }  
  .footer-powered-by {
    grid-column: span 2;
    padding-top: 8.5rem;
    padding-bottom: 0;
  }
  .footer-end {
    grid-column: span 2;
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
  }

}
/* ========================= Styles for tablet screen end.   ========================= */




/* ========================= Styles for desktop screen start. ========================= */
@media screen and (min-width: 1024px) {

  /* -- Scrollbar Styles ----------------------------------------- */
  /* Scrollbar background */
  ::-webkit-scrollbar {
    overflow:hidden;
    width: 12px;
    height:12px;
  }
  /* Scrollbar buttons */
  ::-webkit-scrollbar-button:start:decrement,
  ::-webkit-scrollbar-button:end:increment {
    width:  12px;
    height: 12px;
    overflow:hidden;
    -webkit-border-radius:6px;
    display: block;
  }
  ::-webkit-scrollbar-track-piece {
    -webkit-border-radius: 6px;
  }
  ::-webkit-scrollbar-thumb:vertical {
    height: 8px;
    -webkit-border-radius: 6px;
  }
  ::-webkit-scrollbar-thumb:horizontal {
    width: 6px;
    -webkit-border-radius: 6px;
  }
  ::-webkit-scrollbar-corner {
    -webkit-border-radius:0px;
    border-radius:0px;
  }
  /* Scrollbar colors */
  body {
    scrollbar-3dlight-color:    var(--color02);
    scrollbar-arrow-color:      var(--color01);
    scrollbar-darkshadow-color: var(--color02);
    scrollbar-face-color:       var(--color03);
    scrollbar-highlight-color:  var(--color04);
    scrollbar-shadow-color:     var(--color04);
    scrollbar-track-color:      var(--color01);
  }
  /* Scrollbar styles (for Chrome/Safari) ---- */
  /* Background area ----------- */
  ::-webkit-scrollbar {
    background:var(--color01);
  }
  /* Scrollbar buttons */
  ::-webkit-scrollbar-button:start:decrement,
  ::-webkit-scrollbar-button:end:increment {
    background-color: var(--color02);
  }
  /* Scrollbar bottom area */
  ::-webkit-scrollbar-track-piece {
    background-color: var(--color03);
  }
  /* Vertical scrollbar */
  ::-webkit-scrollbar-thumb:vertical {
    background-color: var(--color05);
  }
  /* Horizontal scrollbar */
  ::-webkit-scrollbar-thumb:horizontal {
    background-color: var(--color05);
  }
  /* Right bottom area */
  ::-webkit-scrollbar-corner {
    background:var(--color04);
  }

  /* -- General Styles ------------------------------------------- */

  body {
    background: var(--color02);
  }

  /* Main area - fixed to 950px */
  #main-wrapper {
    width: 950px;
    margin: 0 auto;
    border-left: solid 1px var(--color01);
    border-right: solid 1px var(--color01);
  }

  /* Hide hamburger menu + mobile site navigation */
  #navToggle, #siteNav {
    display: none;  
  }

  h1 {
    margin-left: 0;
    border-left: solid 1rem var(--color03);
    padding: 0.2rem 1rem;
    border-top: none;
    border-bottom: dashed 1px var(--color03);
    width: 90%;
  }

  /* -- Header Styles -------------------------------------------- */
  /* Higher header for desktop */
  #header {
    height: 350px;
    position: relative;
    z-index: 19;
  }
  /* Hide mobile header brand */
  #header-brand {
    display: none;
  }
  .brand-stack {
    margin-top: 0;
  }
  /* Repeat bottom half of header image here. This part is sticky. */
  #header-tail {
    display: block;
    height: 150px;
    position: sticky; top: 0; z-index: 20;
    margin-top: -150px;
    /* Same image, same scale, but shifted Y position to show "bottom 150px" */
    background: no-repeat center -200px; 
    background-size: 100% 350px;
    padding-left: 1rem;
    color: var(--color05);
  }
  /* Brand logo image for desktop (larger) */
  .brand-logo-img2 {
    max-width: 350px;
    width: 350px;
  }  

  /* -- Main Styles ---------------------------------------------- */
  /* Enable 2 column layout with side navigation bar */
  #content-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    background-color: var(--color04);
  }
  /* PC sidebar */
  #pc-sidebar {
    display: block;
  }

  /* -- Article Navigation Styles -------------------------------- */
  /* Article navigation changes to PC style */
  .article-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    margin: 8px;
  }
  /* Remove 'button-like' styling applicable for mobile/tablet */
  .article-nav .nav-item {
    background: transparent;
    border: none;
    color: var(--color01);
    padding: 0;
    min-height: 0;
    border-radius: 0;
    transform: none;
  }
  .article-nav .nav-item .inner i {
    color: var(--color01);
  }
  .article-nav .nav-item:visited {
    color: var(--color01);
  }
  .article-nav .nav-item:hover {
    background: transparent;
    border-color: transparent;
    text-decoration: none;
    transform: none;
  }
  .article-nav .nav-item:focus-visible {
    outline: none;
    text-decoration: none;
  }
  /* Align text and icons horizontally */
  .article-nav .nav-item .inner {
    display: inline-flex;
    flex-direction: row;  /* update from 'column' */
    align-items: center;
    gap: 2px;
    line-height: 1.2;
  }
  /* Icon first for "back" and "home" */
  .article-nav .nav-item.prev  .icon,
  .article-nav .nav-item.home  .icon { order: 1; }
  .article-nav .nav-item.prev  .label,
  .article-nav .nav-item.home  .label { order: 2; }
  /* Text first for "next" */
  .article-nav .nav-item.next  .label { order: 1; }
  .article-nav .nav-item.next  .icon  { order: 2; }
  /* Bring "Next" to the right */
  .article-nav .nav-item.next {
    margin-left: auto; 
  }
  /* Other adjustments */
  .article-nav .label { font-size: 15px; font-weight: 600; }
  .article-nav .icon  { font-size: 16px; }  


  /* -- Main Article Styles -------------------------------------- */
  /* Article changes to PC style */
  article {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: repeat(4, auto);
    margin: 0.5rem;
    width: 640px;
  }
  .article-title {
    grid-row: 1;
    grid-column: 1;
    border-left: solid 1rem var(--color02);
    padding: 0.5rem 1rem;
    border-bottom: dashed 1px var(--color02);
    width: 620px;
  }
  .article-date {
    grid-row: 2;
    grid-column: 1;
    text-align: right;
    padding: 0;
    margin-right: 10px;
  }
  .article-body {
    grid-row: 3;
    grid-column: 1;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 650px;
  }
  .article-footer {
    grid-row: 4;
    grid-column: 1;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: left;
    margin-bottom: 3rem;
  }
  .article-hr {
    display: none;
  }

  /* -- Comments Styles ----------------------------------------- */
  .comment-section-header {
    display: block;
    border-left: solid 1rem var(--color02);
    padding: 3px 8px;
    border-bottom: dashed 1px var(--color02);
    width: 640px;
  }
  .comments-hr {
    display: none;
  }

  /* -- Search Results ------------------------------------------- */
  .search-results-wrapper {
    margin: 3rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    
  }
  .search-results {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }
  .search-results-hr {
    border-top: none;
  }
  
}
/* ========================= Styles for desktop screen end.   ========================= */
