@charset "UTF-8";
/* Mini kanji List */
* {
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  background: #000;
  color: antiquewhite;
	max-width: 430px;
	margin: 0 auto;
  padding: 1em;
}

a {
  text-decoration: none;
}

.wrapper {
  max-width: 430px;
  margin: 0 auto;
}

.highlight {
  color: #b8860b; /* or any color like #facc15 (yellow-ish) */
  font-weight: bold;
}

/* Header */
.kw-header {
  text-align: center;
  padding: 10px 0;
}

.kw-logo {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.2em;
  font-size: 2.3rem;
  font-weight: 600;
  font-family: 'Marcellus', serif; /* or whatever you use */
  margin-bottom: 0.2em;
}

/* Color styles */
.kakishibu {
  color: #904012;  /* Wabi-sabi orange */
}

.sabi {
  color: #9f8672;  /* Soft brown-gray */
}

.sabi.small {
  font-size: 75%;
}

.kanji-closing-message {
  margin-top: 2rem;
  font-size: 0.92em;
  line-height: 1.6;
  color: #ccc;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

/* Title styling */
.kanji-page-label {
  text-align: center;
  font-size: 1.2em;
  margin-top: 1em;
  color: #222;
  font-weight: bold;
}

/* Footer or extra note message */

.kanji-tabs {
  display: flex;
  justify-content: space-between;
  gap: 6px; /* slightly tighter gap */
  margin: 1.5em 0 1em;
}

.kanji-tabs a {
  flex: 1;
  text-align: center;
  background-color: #313b12;
  color: antiquewhite;
  border-radius: 16px;
  padding: 0.4em 0.2em; /* less vertical padding */
  font-size: 0.8rem; /* slightly smaller */
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  border: 1px solid #333;
  white-space: nowrap; /* ðŸ’¡ prevent line wrap */
}

.kanji-tabs a:hover {
  background-color: darkolivegreen;
  color: #000;
}

.kanji-tabs a:nth-child(1) { flex: 1; }      /* Home */
.kanji-tabs a:nth-child(2) { flex: 1.4; }    /* Listen & Learn */
.kanji-tabs a:nth-child(3) { flex: 1; }      /* Spin 9 */

/* Footer */
.kw-footer {
  text-align: center;
  font-size: 1em;
  color: #9f8e72; /* sabi tone */
  padding: 16px 12px;
  border-top: 1px solid #444;
  margin-top: 1.5em;
  line-height: 1.5;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

.kw-footer a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.kw-footer a:hover {
  text-decoration: underline;
}

.footer-kakishibu {
  color: #c36d3c;
  font-weight: 800;
}

.footer-sabi {
  color: #9f8672;
  font-size: 0.7em;
  font-weight: 600;
}

.compact-footer {
  margin-top: 0px !important; /* or whatever spacing looks best */
}

.kanji-grid {
  display: grid !important;
  grid-template-columns: repeat(10, 25px) !important;
  gap: 2px;
  justify-content: center;
  margin: 1em auto;
}

.kanji-grid a {
  width: 25px !important;
  height: 25px !important;
  display: block;
}

.kanji-grid img {
  width: 25px !important;
  height: 25px !important;
  border: 1px solid #666;
  border-radius: 2px;
  display: block;
  margin: 0;
  padding: 0;
  transition: transform 0.2s ease;
}

.kana-tabs a {
  background: #3a4420; /* Olive green */
  color: bisque;
  padding: 0.4em 1.4em;
  border-radius: 10px;
  margin: 1.5em 0.1em 0.5em 0.1em;
  font-weight: normal;
  text-decoration: none;
  display: inline-block;
}

.kana-tabs {
  display: flex;
  justify-content: center;
  gap: 0.2em; /* Controls spacing between buttons */
  margin-top: 1em;
  margin-bottom: 0.5em; /* Reduces margin below */
}

/* Special color for E-voice tab */
.kana-tabs .evoice-tab {
  background-color: #896011;  /* kakishibu orange */
  color: bisque;                /* black text */
  font-weight: normal;
}

.kana-tabs .evoice-tab:hover {
  filter: brightness(1.1);
}


.k101-note {
  max-width: 380px;
  margin: 1.5em auto 0 auto;
  font-size: 1.05rem;
  color: #ceaa64;
  text-align: left;
  line-height: 1.6;
  font-weight: 400;
}

.expandable-note {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #ceaa64;
	text-align: left;
  max-width: 380px;
  margin: 2em auto;
}

.expand-toggle {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  display: inline-block;
  margin-top: 0.5em;
  margin-bottom: 0;
  line-height: 1.3;
  transition: transform 0.2s ease, color 0.2s ease;
}

.expand-toggle:hover {
  color: #f1d59b;
  transform: scale(1.05);
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background-color: black;
  flex-wrap: wrap; /* allow stacking on small screens */
}

/* Logo styling — assumes existing .kakishibu and .sabi CSS classes */
.kw-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.evoice-button {
  background-color: #7b5608;
  border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.25) !important;  /* Thin white border */
  padding: 4px 12px;
  text-align: center;
  font-family: 'Arial', sans-serif;
  color: white;
  text-decoration: none;
  font-size: 0.95em;
  line-height: 1.2;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.evoice-button:hover {
  background-color: #c89130;
  transform: scale(1.05);
}

.evoice-main {
  font-weight: bold;
}

.evoice-sub {
  font-size: 0.8em;
  color: #111;
  opacity: 1;
  margin-top: -2px;
  padding-top: 2px;
}

.scrollable-section {
  max-height: 75vh;
  overflow-y: auto;
  padding-bottom: 2em;
  margin-top: -0.8em;  /* Adjust this as needed to pull it upward */
}

.kana-tabs {
  display: flex;
  justify-content: center;  /* use center or flex-start for consistent gaps */
  flex-wrap: nowrap;
  gap: 0.4em;               /* consistent spacing between tabs */
  margin-top: 1.2em;
}

.kana-tabs a {
  flex: 0 0 auto;           /* prevent stretching */
  padding: 0.4em 0.8em;
  font-size: 0.95em;
  background-color: #3a4321;
  color: bisque;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.kana-tabs a:last-child {
  padding-left: 1.2em;   /* slightly more space for ▶︎ */
  padding-right: 1.2em;
}

.kana-tabs a:hover {
  background-color: #444;
}

  .toggle-button {
    background-color: #4c5a21;
    color: bisque;
    border: none;
    padding: 6px 12px;
    font-size: 0.9em;
    cursor: pointer;
    margin: 6px auto;
    display: block;
    border-radius: 4px;
  }

.kanji-tabs--wide {
  width: 100%;
  justify-content: space-between;
  max-width: 400px;
  margin: 2em auto 0.8em;
}

.kanji-tabs.kanji-tabs--wide a {
  flex: 1;
  margin: 0 0.15em;
}
/* === 101 footer tabs: force 4 equal widths === */
.kanji-tabs,
.kana-tabs {
  display: flex !important;          /* make the bar flex */
  gap: 3px;                          /* tiny space between tabs */
}

.kanji-tabs a,
.kana-tabs a {
  flex: 1 1 0 !important;            /* each = 25% */
  min-width: 0;                      /* avoid overflow in Safari */
  display: flex !important;          /* center content */
  align-items: center;
  justify-content: center;
  padding: 8px 0 !important;         /* same height for all */
  line-height: 1 !important;         /* no extra vertical space */
  border-radius: 8px;
  text-decoration: none;
  box-sizing: border-box;
}

.kanji-tabs a i,
.kana-tabs a i {
  margin: 0;                         /* keep the icon centered */
}

/* Search tab color (site-wide standard) */
.kanji-tabs a.search-tab,
.kana-tabs a.search-tab {
  background-color: #ca952e;
  color: #fff;
}

.kanji-tabs a.search-tab:hover,
.kana-tabs a.search-tab:hover {
  background-color: #e0a84c;
}

.page-title {
  font-size: 1rem;   /* smaller than default */
  font-weight: 600;
  margin: 0.1rem 0 0.25rem;  /* reduced top margin */
  text-align: center;
}

.map-intro {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0.7rem 0.5rem 1rem;
  text-align: left;
}