@charset "utf-8";

@font-face {
  font-family: "Hakgyoansim Bareondotum";
  src: url("./images/HakgyoansimBareondotumR.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Hakgyoansim Bareondotum";
  src: url("./images/HakgyoansimBareondotumB.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg: #000000;
  --surface: #121212;
  --surface-strong: #1c1c1c;
  --card-bg: #000000;
  --text: #ffffff;
  --muted: #b3b3b3;
  --soft: #8f8f8f;
  --line: #333333;
  --accent: #2436bf;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  --content-width: 600px;
  --article-width: 600px;
  --radius-lg: 0.9rem;
  --radius-md: 0.7rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  font-size: 14px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hakgyoansim Bareondotum";
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: -0.02em;
  overflow-y: scroll;
}

body,
body *,
body *::before,
body *::after {
  font-family: "Hakgyoansim Bareondotum" !important;
}

a {
  color: inherit;
  text-decoration: none;
}

a[href]:hover,
a[href]:focus-visible,
button:not(:disabled):not([aria-disabled="true"]):hover,
button:not(:disabled):not([aria-disabled="true"]):focus-visible,
summary:hover,
summary:focus-visible,
input[type="submit"]:not(:disabled):hover,
input[type="submit"]:not(:disabled):focus-visible,
input[type="button"]:not(:disabled):hover,
input[type="button"]:not(:disabled):focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.12em;
}

.site-brand a,
.site-brand a:hover,
.site-brand a:focus-visible,
.site-brand a * {
  color: inherit !important;
  text-decoration: none !important;
}

.webzine .story-card-link:hover .story-excerpt,
.webzine .story-card-link:focus-visible .story-excerpt,
.home-note-item:hover .home-note-summary,
.home-note-item:focus-visible .home-note-summary,
.story-card-link:hover .story-excerpt,
.story-card-link:focus-visible .story-excerpt {
  color: inherit !important;
  text-decoration: none !important;
}

#tt-body-page blockquote {
  font-size: 0.86rem;
}

.another_category_color_gray,
.another_category_color_gray h4 {
  visibility: collapse;
}

.tt-btn_register[disabled],
.tt-btn_register[aria-disabled="true"] {
  color: var(--soft) !important;
  text-decoration: none !important;
  cursor: default !important;
}

.tt-btn_register[disabled]:hover,
.tt-btn_register[disabled]:focus-visible,
.tt-btn_register[aria-disabled="true"]:hover,
.tt-btn_register[aria-disabled="true"]:focus-visible {
  color: var(--soft) !important;
  text-decoration: none !important;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.meiskin2-shell {
  min-height: 100vh;
}

.site-header {
  padding: 5rem 0 3rem;
}

.site-header-inner,
.site-main,
.site-footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 1rem;
  align-items: start;
  align-items: center;
}

.site-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  align-items: center;
}

.site-brand-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--surface-strong);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  flex-shrink: 0;
}

.site-brand-copy {
  min-width: 0;
}

.site-brand-name {
  display: block;
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-brand-bio {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.74rem;
  line-height: 1.7;
}

.site-header-panel {
  text-align: right;
}

.header-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  width: max-content;
  margin-left: auto;
  gap: 0.4rem;
  font-size: 0.72rem;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.header-links-dot {
  color: var(--text);
}

.header-categories {
  position: relative;
  display: inline-block;
  font-size: 0.72rem;
  line-height: 1.8;
}

.header-categories::marker,
.header-categories summary::-webkit-details-marker {
  display: none;
}

.header-categories-label {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-block;
}

.header-categories-panel {
  display: none;
  position: absolute;
  top: 0;
  left: calc(100% + 1rem);
  width: max-content;
  max-width: 16rem;
  padding-left: 0.25rem;
  z-index: 10;
  text-align: left;
}

.header-categories-panel ul {
  text-align: left;
}

.header-categories[open] .header-categories-panel {
  display: block;
}

.header-categories-panel,
.header-categories-panel * {
  white-space: normal;
}

.header-categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-categories li {
  margin: 0;
  padding: 0;
}

.header-categories a {
  display: block;
  color: var(--text);
}

.header-categories ul ul {
  margin-left: 1rem;
}

.header-categories a.has-new-mark {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.3em;
}

.category-new-mark {
  order: 0;
  color: var(--text);
}

.header-categories a.has-new-mark:hover .category-new-mark,
.header-categories a.has-new-mark:focus-visible .category-new-mark {
  color: var(--accent);
}

.site-main {
  padding-bottom: 4.5rem;
}

.editorial-section,
.article-view,
.protected-view {
  margin-bottom: 1rem;
}

.section-head {
  margin-bottom: 1.25rem;
}

.section-head h2,
.article-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.section-description {
  margin: 0.35rem 0 0;
  color: var(--soft);
  font-size: 0.74rem;
  line-height: 1.7;
}

.cover-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.home-note-list,
.home-list-items {
  display: grid;
  gap: 0.3rem;
}

.tag-cloud {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem 0.7rem;
}

.tag-cloud>* {
  flex: 0 0 auto;
}

.home-note-item {
  max-width: 48rem;
}

.home-note-title {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 700;
}

.home-note-summary {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  line-height: 1.8;
  color: var(--text);
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-gallery-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
  background: var(--surface);
}

.home-gallery-thumb,
.home-gallery-thumb-fallback,
.home-grid-thumb,
.home-grid-thumb-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-grid-list {
  display: grid;
  gap: 1.3rem;
}

.home-grid-thumb-wrap {
  position: relative;
  aspect-ratio: 1 / 1.05;
  background: var(--surface);
  overflow: hidden;
}

.home-gallery-thumb-fallback,
.home-grid-thumb-fallback {
  background: var(--surface-strong) url("./images/noimg.png") center / cover no-repeat;
}

.home-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.3rem 0;
}

.home-list-title {
  display: block;
  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.home-list-date {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  white-space: nowrap;
}

.archive-view .article-list {
  max-width: var(--article-width);
  margin-left: auto;
  margin-right: auto;
}

.article-list {
  display: grid;
  gap: 1.75rem;
}

.article-item {
  margin: 0;
}

.story-card-link {
  display: block;
}

.story-thumb-wrap {
  position: relative;
  background: var(--surface);
  overflow: hidden;
}

.story-thumb-fallback {
  position: absolute;
  inset: 0;
  background: var(--surface-strong) url("./images/noimg.png") center / cover no-repeat;
}

.story-thumb {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-body {
  min-width: 0;
}

.story-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.story-title,
.cover-note-title,
.article-nav-link,
.tag-chip,
.pagination-link {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.story-title,
.cover-note-title,
.home-list-title,
.article-nav-link {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.story-date {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  white-space: nowrap;
}

.story-excerpt {
  overflow: hidden;
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  line-height: 1.72;
  color: var(--text);
}

[data-tistory-react-app="Namecard"],
.tt_box_namecard {
  display: none !important;
}

.simple .article-list {
  gap: 0.3rem;
}

.simple .story-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.25rem 0;
}

.simple .article-thumb {
  display: none;
}

.simple .story-body {
  display: block;
  width: 100%;
}

.simple .story-excerpt {
  display: none;
}

.simple .story-headline {
  align-items: center;
}

.simple .story-title {
  font-size: 0.8rem;
  line-height: 1.6;
}

.webzine .article-list {
  gap: 1.3rem;
}

:is(.home-grid-item .story-card-link, .webzine .story-card-link) {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  width: 100%;
}

:is(.home-grid-item .story-card-link, .webzine) .article-thumb {
  height: 100%;
  aspect-ratio: 1 / 1;
}

:is(.home-grid-item .story-card-link, .webzine) .story-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 100%;
  padding: 0.35rem 0 0;
}

:is(.home-grid-item .story-card-link, .webzine, .gallery) .story-headline {
  margin-bottom: 0;
}

:is(.home-grid-item .story-card-link, .webzine) .story-title {
  font-size: 0.84rem;
  line-height: 1.5;
}

:is(.home-grid-item .story-card-link, .webzine) .story-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
}

.gallery .story-date,
.gallery .story-excerpt {
  display: none;
}

.gallery .article-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery .article-thumb {
  aspect-ratio: 1 / 1.05;
}

.gallery .story-body {
  padding-top: 0.75rem;
}

.gallery .story-title {
  font-size: 0.82rem;
  line-height: 1.5;
}

.article-view {
  padding-top: 0.5rem;
}

.article-header,
.article-body-wrap,
.article-nav,
.editorial-comments,
.protected-view,
.notice-view .article-header,
.notice-view .article-body-wrap {
  max-width: var(--article-width);
  margin-left: auto;
}

.article-header {
  margin-bottom: 2rem;
}

.article-date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  margin-top: 0.35rem;
}

.article-admin-links {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-admin-link,
.article-admin-sep {
  color: var(--soft);
  font-size: 0.72rem;
  line-height: 1.5;
  font-weight: 400;
}

.article-hero {
  margin: 0 0 1.75rem;
  background: var(--surface);
  max-width: var(--article-width);
  margin-left: auto;
  margin-right: auto;
}

.article-hero-image {
  width: 100%;
  height: auto;
}

.article-body-wrap {
  font-size: 0.82rem;
  line-height: 1.75;
}

.editorial-article-content>*:first-child {
  margin-top: 0;
}

.editorial-article-content p {
  margin: 0 0 1.1rem;
}

.editorial-article-content h1,
.editorial-article-content h2,
.editorial-article-content h3,
.editorial-article-content h4 {
  margin: 2rem 0 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.editorial-article-content img {
  margin: 1.5rem 0;
}

.editorial-article-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.editorial-article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--line);
  background: var(--surface);
}

.editorial-article-content pre {
  overflow-x: auto;
  background: var(--surface);
}

.editorial-article-content code {
  font-family: "Hakgyoansim Bareondotum";
  font-size: 0.92em;
}

.editorial-article-content :not(pre)>code {
  padding: 0.12rem 0.3rem;
  background: var(--surface);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.article-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  width: 100%;
}

.article-action-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.article-action-link,
.article-nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--soft);
  font-weight: 400;
}

.article-action-link {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.article-comments-link {
  color: var(--soft);
}

.container_postbtn {
  display: none !important;
}

.article-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0;
}

.article-nav-link {
  width: auto;
}

.editorial-comments {
  margin-top: 3.25rem;
}

.editorial-comments[hidden] {
  display: none;
}

.guestbook-view .tt-comment-cont,
.editorial-comments .tt-comment-cont {
  display: flex;
  flex-direction: column;
}

.guestbook-view .tt-comment-cont>form {
  order: -1;
}

.editorial-comments .tt-thumbnail,
.guestbook-view .tt-thumbnail {
  display: none !important;
}

.editorial-comments .tt-box-thumb,
.guestbook-view .tt-box-thumb {
  display: none !important;
}

.rp-form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.guestbook-view .rp-form {
  order: -1;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-top: 0;
  padding-bottom: 1.5rem;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.tt_box_cheers {
  display: none !important;
}

.tt-box-total,
.tt_box_total,
.tt_box_cheers .tt_desc_cheers,
.tt_box_cheers .tt_btn_cheers,
.tt_box_cheers .tt_guide_cheers {
  display: none;
}

.tt-area-write,
.tt-box-write {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tt_wrap_write {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.tt-area-write .tt-box-account {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tt-box-textarea .tt-inner-g,
.protected-input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg) !important;
  color: var(--text);
  outline: none;
}

.tt-box-textarea .tt-inner-g,
.tt-box-textarea .tt-inner-g * {
  background-color: transparent !important;
  background-image: none !important;
  color: var(--text) !important;
}

.guestbook-view .tt-box-textarea .tt-inner-g {
  border-color: var(--accent);
}

.tt-account-field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
}

.tt-account-field>input {
  width: 100%;
  padding: 0.65rem 0 0.45rem;
  border: 0 !important;
  background: transparent !important;
  color: var(--text);
  outline: none;
  box-shadow: none !important;
  font-size: 0.82rem;
  line-height: 1.6;
}

.tt-account-field>input:focus {
  outline: none;
}

.tt-account-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
  flex: 0 0 auto;
}

.tt-account-field>input:focus+.tt-account-line {
  background: var(--text);
}

.tt-box-textarea .tt-inner-g {
  min-height: 9.5rem;
  padding: 0.9rem 1rem;
  font-size: 0.8rem;
  line-height: 1.8;
}

.tt-box-textarea .tt-cmt[contenteditable="true"]:empty::before {
  content: "내용을 남겨 주세요.";
  color: var(--soft);
}

.tt-box-textarea .tt-cmt[contenteditable="true"],
.editorial-comments .tt-cmt[contenteditable="true"],
.guestbook-view .tt-cmt[contenteditable="true"] {
  font-size: 0.8rem !important;
  line-height: 1.8 !important;
}

.tt-box-textarea .tt-inner-g .tt-cmt[contenteditable="true"],
.editorial-comments .tt-box-textarea .tt-cmt[contenteditable="true"],
.guestbook-view .tt-box-textarea .tt-cmt[contenteditable="true"] {
  font-size: 0.8rem !important;
  line-height: 1.8 !important;
}

.article-hero:has(.article-hero-image[src=""]),
.article-hero:has(.article-hero-image:not([src])) {
  display: none !important;
}

.article-hero-image[src=""],
.article-hero:has(> img[src=""]) {
  display: none !important;
}

.editorial-comments input[type="checkbox"],
.guestbook-view input[type="checkbox"] {
  appearance: checkbox !important;
  -webkit-appearance: checkbox !important;
  display: inline-block !important;
  opacity: 1 !important;
  width: 0.85rem !important;
  height: 0.85rem !important;
  accent-color: var(--soft);
  margin: 0;
  flex: 0 0 auto;
}

.editorial-comments .tt-box-textarea,
.guestbook-view .tt-box-textarea {
  margin: 0 !important;
  padding: 0 !important;
}

.editorial-comments .tt-box-textarea .tt-cmt,
.guestbook-view .tt-box-textarea .tt-cmt,
.editorial-comments .tt-box-textarea .tt-inner-g,
.guestbook-view .tt-box-textarea .tt-inner-g {
  margin: 0 !important;
}

.editorial-comments .tt-box-write .tt-xe-label,
.guestbook-view .tt-box-write .tt-xe-label,
.editorial-comments .secret-btn,
.guestbook-view .secret-btn {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.35rem !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  position: static !important;
  float: none !important;
  min-width: 0 !important;
  font-size: 0.72rem !important;
  line-height: 1.4 !important;
  color: var(--soft) !important;
  white-space: nowrap !important;
}

.editorial-comments .tt-xe-label-text,
.guestbook-view .tt-xe-label-text {
  display: inline-block !important;
  font-size: 0.72rem !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  white-space: nowrap !important;
}

.editorial-comments .tt-box-write .tt-xe-label>input,
.guestbook-view .tt-box-write .tt-xe-label>input {
  position: static !important;
  margin: 0 !important;
}

.editorial-comments .tt-xe-input-helper,
.guestbook-view .tt-xe-input-helper,
.editorial-comments .secret-btn .secret-icon,
.guestbook-view .secret-btn .secret-icon,
.editorial-comments .tt-box-write .tt_img_area_reply,
.guestbook-view .tt-box-write .tt_img_area_reply,
.editorial-comments .tt_ico_lock,
.guestbook-view .tt_ico_lock {
  display: none !important;
}

.protected-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--soft) !important;
}

.tt-btn_register {
  display: inline-flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: auto !important;
  margin: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--soft) !important;
}

.tt-btn_register {
  font-size: 0.72rem;
  line-height: 1.4;
}

.editorial-comments button,
.guestbook-view button {
  background: transparent;
  color: var(--soft);
  border: 0 !important;
  box-shadow: none;
  padding: 0;
}

.editorial-comments .tt-area-write .tt-box-account input,
.guestbook-view .tt-area-write .tt-box-account input {
  background: transparent;
  border: 0 !important;
  padding: 0;
  font-size: 0.82rem;
  box-shadow: none;
}

.editorial-comments .tt-account-field>input,
.guestbook-view .tt-account-field>input {
  padding: 0.55rem 0 0.45rem;
}

.editorial-comments .tt-account-line,
.guestbook-view .tt-account-line {
  height: 1px;
  background: var(--line);
}

.editorial-comments .tt-account-field>input:focus+.tt-account-line,
.guestbook-view .tt-account-field>input:focus+.tt-account-line {
  background: var(--text);
}

.guestbook-view .tt-box-textarea .tt-inner-g {
  min-height: 7.8rem;
}

.editorial-comments .tt-box-write,
.guestbook-view .tt-box-write {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  width: 100% !important;
  margin-top: 0 !important;
}

.editorial-comments .tt-box-write .tt-xe-label,
.guestbook-view .tt-box-write .tt-xe-label {
  margin: 0 !important;
  width: auto !important;
  min-height: 1.25rem;
  justify-content: flex-start !important;
}

.editorial-comments .tt-box-write .tt-btn_register,
.guestbook-view .tt-box-write .tt-btn_register {
  align-self: auto;
  margin-left: 0 !important;
  flex: 0 0 auto !important;
}

.guestbook-view .tt-box-write>div[style*="margin-left: auto"][style*="align-items: center"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  justify-content: space-between;
  gap: 0.3rem;
}

.editorial-comments .tt-box-textarea .tt-inner-g,
.guestbook-view .tt-box-textarea .tt-inner-g {
  min-height: 9.5rem;
  padding: 0.9rem 1rem;
  font-size: 0.8rem;
  line-height: 1.8;
  background: transparent;
}

.protected-view {
  padding-top: 0.5rem;
}

.protected-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: min(100%, 12rem);
  margin: 0 auto;
}

.protected-input {
  width: 100%;
  padding: 0.55rem 0;
  border-width: 0 0 1px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
}

.protected-submit {
  min-width: 4.5rem;
  padding: 0;
  font-size: 0.72rem;
  line-height: 1.4;
}

.tt-list-reply,
.tt-list-reply-comment {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tt-item-reply>.tt-wrap-cmt {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 0;
}

.tt-list-reply-comment .tt-item-reply>.tt-wrap-cmt {
  margin-left: 2rem;
  padding-left: 1rem;
  border-left: 0;
}

.tt-thumbnail {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}

.tt-wrap-cmt .tt-box-content {
  flex: 1 1 auto;
  min-width: 0;
}

.tt-wrap-cmt .tt-link-user,
.tt-wrap-cmt .tt_date,
.tt-link-comment,
.tt-wrap-cmt .tt_desc,
.tt-txt-mention,
.tt-button-modify,
.tt-list-modify a,
.tt-btn-cancel {
  margin: 0;
  color: inherit;
  text-decoration: none;
}

.tt-btn-cancel {
  display: none !important;
}

.tt-wrap-cmt .tt-link-user {
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 700;
}

.tt-wrap-info,
.tt-wrap-cmt .tt-box-meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  color: var(--soft);
  width: 100%;
}

.tt-wrap-cmt .tt_date,
.tt-link-comment,
.tt-link-comment .tt_num_g {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--soft);
}

.tt-wrap-cmt .tt_desc {
  font-size: 0.82rem;
  line-height: 1.8;
}

.tt-wrap-cmt .tt-wrap-link-comment {
  margin-top: 0;
}

.tt-wrap-cmt .tt-wrap-link-comment,
.tt-wrap-cmt .tt-link-comment,
.tt-wrap-cmt .tt_date {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.tt-wrap-cmt .tt-list-modify {
  position: static;
  display: inline-flex !important;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  justify-content: flex-end;
}

.tt-wrap-info>.tt-list-modify {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  width: auto !important;
  gap: 0.35rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.tt-wrap-info>.tt-box-modify {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  gap: 0.35rem !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--soft);
  white-space: nowrap;
}

.tt-wrap-cmt .tt-list-modify li:first-child,
.tt-wrap-cmt .tt-list-modify li:last-child {
  display: none !important;
}

.guestbook-view .tt-wrap-cmt .tt-list-modify li:first-child,
.guestbook-view .tt-wrap-cmt .tt-list-modify li:last-child {
  display: list-item !important;
}

.guestbook-view .tt-wrap-cmt .tt-list-modify li:nth-child(n + 3) {
  display: none !important;
}

.tt-wrap-cmt .tt-list-modify a {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--soft);
}

.tt-wrap-cmt .tt-box-modify>.tt-button-modify {
  display: none !important;
}

:is(.editorial-comments, .guestbook-view) .tt-item-reply>.tt-wrap-cmt {
  padding: 0.85rem 0 0.85rem 0;
  border-bottom: 0;
}

:is(.editorial-comments, .guestbook-view) .tt-list-reply-comment .tt-item-reply>.tt-wrap-cmt {
  margin-left: 2rem;
  padding: 0.6rem 0 0.6rem 0;
  width: calc(100% - 2rem);
  border-bottom: 0;
  border-left: 0;
}

:is(.editorial-comments, .guestbook-view) .tt-list-reply>.tt-item-reply+.tt-item-reply>.tt-wrap-cmt,
:is(.editorial-comments, .guestbook-view) .tt-list-reply>.tt-item-reply+.tt-item-reply>.tt_cmt_info,
:is(.editorial-comments, .guestbook-view) .tt-list-reply-comment .tt-item-reply>.tt-wrap-cmt,
:is(.editorial-comments, .guestbook-view) .tt-item-reply>.tt-wrap-cmt {
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
}

.editorial-comments .rp-form,
.guestbook-view .rp-form {
  border-top: 0;
}

.guestbook-view .rp-form {
  border-bottom: 0;
}

:is(.editorial-comments, .guestbook-view) .tt-item-reply>.tt-wrap-cmt,
:is(.editorial-comments, .guestbook-view) .tt-list-reply-comment .tt-item-reply>.tt-wrap-cmt {
  padding-bottom: 0;
}

:is(.editorial-comments, .guestbook-view) .tt-wrap-cmt .tt-wrap-info {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: 0.15rem;
}

:is(.editorial-comments, .guestbook-view) .tt-wrap-cmt .tt-wrap-link-comment {
  margin-top: 0;
}

.editorial-comments .tt-btn_register,
.guestbook-view .tt-btn_register {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  margin: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--soft) !important;
  font-size: 0.72rem !important;
  line-height: 1.4 !important;
}

:is(.editorial-comments, .guestbook-view) .tt-wrap-cmt .tt-thumbnail {
  display: none !important;
}

:is(.editorial-comments, .guestbook-view) .tt-wrap-cmt .tt-wrap-info,
:is(.editorial-comments, .guestbook-view) .tt-wrap-cmt .tt-box-meta {
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}

:is(.editorial-comments, .guestbook-view) .tt-wrap-cmt .tt-box-modify>.tt-button-modify {
  display: none !important;
}

:is(.editorial-comments, .guestbook-view) .tt-wrap-cmt .tt-link-user {
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 700;
}

:is(.editorial-comments, .guestbook-view) .tt-wrap-cmt .tt_desc {
  font-size: 0.82rem;
  line-height: 1.8;
}

:is(.editorial-comments, .guestbook-view) .tt-wrap-cmt .tt_date,
:is(.editorial-comments, .guestbook-view) .tt-link-comment,
:is(.editorial-comments, .guestbook-view) .tt-link-comment .tt_num_g {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--soft);
}

.tt-link-comment .tt_txt_g {
  font-size: 0.72rem;
}

:is(.editorial-comments, .guestbook-view) .tt-box-modify button,
:is(.editorial-comments, .guestbook-view) .tt-list-modify a {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

:is(.editorial-comments, .guestbook-view) .tt-wrap-info {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin-bottom: 0.15rem;
  gap: 0.35rem;
  white-space: nowrap;
  width: 100%;
}

:is(.editorial-comments, .guestbook-view) .tt-wrap-info>.tt-list-modify {
  justify-content: flex-end !important;
  width: auto !important;
  margin: 0 !important;
}

:is(.editorial-comments, .guestbook-view) .tt-wrap-info>.tt-box-modify,
.guestbook-view .guestbook-card .tt-box-modify {
  justify-content: flex-end !important;
  width: auto !important;
  margin-left: auto !important;
}

:is(.editorial-comments, .guestbook-view) .tt-wrap-cmt .tt_date,
:is(.editorial-comments, .guestbook-view) .tt-link-comment {
  line-height: 1;
}

.guestbook-view .guestbook-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  max-width: 100%;
}

.guestbook-view .guestbook-card-head,
.editorial-comments .guestbook-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.guestbook-view .guestbook-card-title,
.editorial-comments .guestbook-card-title {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.guestbook-view .guestbook-card .tt-link-user,
.editorial-comments .guestbook-card .tt-link-user {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text) !important;
}

.guestbook-view .guestbook-card-body,
.editorial-comments .guestbook-card-body {
  width: 100%;
  min-width: 0;
}

.guestbook-view .guestbook-card-body .tt_desc,
.editorial-comments .guestbook-card-body .tt_desc {
  display: block;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text);
  word-break: break-word;
}

.guestbook-view .guestbook-card-foot,
.editorial-comments .guestbook-card-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.guestbook-view .guestbook-card-tools,
.editorial-comments .guestbook-card-tools {
  position: static;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
  gap: 0.35rem;
  opacity: 1;
  visibility: visible;
  transition: none;
}

.guestbook-view .guestbook-card .tt-box-modify,
.editorial-comments .guestbook-card .tt-box-modify {
  position: static;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 0.35rem !important;
  width: auto !important;
  max-width: 100%;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--soft);
  white-space: nowrap;
}

.guestbook-view .guestbook-card .tt-box-modify>.tt-button-modify,
.editorial-comments .guestbook-card .tt-box-modify>.tt-button-modify {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  opacity: 0.4;
}

.guestbook-view .guestbook-card .tt-box-modify.tt-box-modify-open .tt-button-modify,
.guestbook-view .guestbook-card .tt-button-modify:hover,
.editorial-comments .guestbook-card .tt-box-modify.tt-box-modify-open .tt-button-modify,
.editorial-comments .guestbook-card .tt-button-modify:hover {
  opacity: 0.75;
  background: transparent;
}

.guestbook-view .guestbook-card .tt-list-modify,
.editorial-comments .guestbook-card .tt-list-modify {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  flex: 0 1 auto;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  text-align: right;
  white-space: nowrap;
}

.guestbook-view .guestbook-card .tt-list-modify li:not(:last-child),
.editorial-comments .guestbook-card .tt-list-modify li:not(:last-child) {
  border-bottom: 0;
  margin-right: 0;
}

.guestbook-view .guestbook-card .tt-list-modify a,
.editorial-comments .guestbook-card .tt-list-modify a {
  min-width: 0;
  justify-content: center;
  padding: 0;
  background: transparent;
  font-size: 0.72rem;
  line-height: 1.4;
}

.guestbook-view .guestbook-card .tt-list-modify li,
.editorial-comments .guestbook-card .tt-list-modify li {
  margin: 0;
  padding: 0;
}

.guestbook-view .guestbook-card .tt-list-modify li:last-child,
.guestbook-view .guestbook-card .tt-list-modify a:last-child,
.editorial-comments .guestbook-card .tt-list-modify li:last-child,
.editorial-comments .guestbook-card .tt-list-modify a:last-child {
  margin-right: 0 !important;
  padding-right: 0 !important;
}

.guestbook-view .guestbook-card .tt-list-modify a:hover,
.editorial-comments .guestbook-card .tt-list-modify a:hover {
  background: transparent;
  color: var(--text);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1.5rem 3rem;
}

.pagination-link {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--soft);
}

.no-more-prev,
.no-more-next {
  opacity: 0.35;
  pointer-events: none;
}

.site-footer {
  padding-bottom: 1rem;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1rem;
  color: var(--soft);
  font-size: 0.72rem;
  line-height: 1.5;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--line);
}

::selection {
  background: var(--accent);
  color: var(--text);
}

@media (max-width: 760px) {
  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: start;
  }

  .site-brand {
    align-items: center;
  }

  .home-gallery-grid,
  .gallery .article-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-categories-panel {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    margin-top: 0.5rem;
    padding-left: 0;
    text-align: right;
  }

  .header-categories ul ul {
    margin-left: 0.85rem;
    width: calc(100% - 0.85rem);
  }

  .header-categories[open] .header-categories-panel {
    display: block;
  }

  .header-categories-panel ul {
    display: inline-block;
    text-align: right;
  }

  .category-new-mark {
    order: -1;
  }

  .header-categories a.has-new-mark {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 2rem;
  }

  .site-brand {
    gap: 0.75rem;
  }

  .site-brand-avatar {
    width: 2.8rem;
    height: 2.8rem;
  }

  .site-brand-name {
    font-size: 0.92rem;
  }

  .site-brand-bio {
    font-size: 0.74rem;
  }

  .home-list-date,
  .story-date,
  .article-date-row {
    font-size: 0.72rem;
  }

  .simple .story-card-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .article-nav {
    gap: 1.25rem;
  }

  .tt-list-reply-comment .tt-item-reply>.tt-wrap-cmt {
    margin-left: 1rem;
    width: calc(100% - 1rem);
  }

  .header-categories-panel {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 0.5rem;
    padding-left: 0;
    text-align: right;
  }
}

@media (max-width: 520px) {

  .editorial-comments .tt-box-write,
  .guestbook-view .tt-box-write {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.75rem !important;
  }

  .editorial-comments .tt-box-write .tt-btn_register,
  .guestbook-view .tt-box-write .tt-btn_register {
    margin-left: auto !important;
  }

  .tt-area-write .tt-box-account {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}
\n\n

/* Header LINK side menu — inline expansion so it stays visible on mobile/tablet */
.header-links-menu {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  gap: 0;
  font-size: inherit;
  line-height: inherit;
  overflow: visible;
}

.header-links-menu > summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  user-select: none;
  white-space: nowrap;
}

.header-links-menu > summary::marker,
.header-links-menu > summary::-webkit-details-marker {
  display: none;
  content: "";
}

.header-links-menu-panel {
  display: none;
  position: static;
  width: max-content;
  min-width: max-content;
  margin-left: 0.7rem;
  text-align: left;
  white-space: nowrap;
}

.header-links-menu[open] .header-links-menu-panel {
  display: inline-flex !important;
  align-items: baseline;
  gap: 0.7rem;
}

.header-links-menu-panel a {
  display: inline-block;
  flex: 0 0 auto;
  color: var(--text);
  white-space: nowrap;
}

.header-links-menu-panel a:hover,
.header-links-menu-panel a:focus-visible {
  color: var(--accent);
}

.site-header,
.site-header-inner,
.site-header-panel,
.header-links {
  overflow: visible;
}

/* The quick-link row is anchored to the right edge. When LINK opens,
   the row grows toward the left instead of sending items off-screen. */
.site-header-panel {
  min-width: 0;
}


/* LINK menu — match CATEGORY expansion behavior */
.header-links-menu {
  position: relative !important;
  display: inline-block !important;
  flex: 0 0 auto;
  font-size: inherit;
  line-height: inherit;
  overflow: visible !important;
}

.header-links-menu > summary {
  display: inline-block !important;
  cursor: pointer;
  list-style: none;
  user-select: none;
  white-space: nowrap;
}

.header-links-menu > summary::marker,
.header-links-menu > summary::-webkit-details-marker {
  display: none !important;
  content: "";
}

.header-links-menu-panel {
  display: none !important;
  position: absolute !important;
  top: 0 !important;
  left: calc(100% + 1rem) !important;
  right: auto !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: 16rem;
  margin: 0 !important;
  padding: 0 0 0 0.25rem !important;
  z-index: 20;
  text-align: left !important;
  white-space: normal !important;
}

.header-links-menu[open] .header-links-menu-panel {
  display: block !important;
}

.header-links-menu-panel a {
  display: block !important;
  width: max-content;
  max-width: 16rem;
  margin: 0 !important;
  color: var(--text);
  line-height: 1.8;
  white-space: normal !important;
}

.header-links-menu-panel a:hover,
.header-links-menu-panel a:focus-visible {
  color: var(--accent);
}

/* Same responsive behavior as the category menu */
@media (max-width: 760px) {
  .header-links-menu-panel {
    position: absolute !important;
    top: calc(100% + 0.5rem) !important;
    left: auto !important;
    right: 0 !important;
    width: max-content !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
  }

  .header-links-menu-panel a {
    margin-left: auto !important;
    text-align: right !important;
  }
}


/* ===== LINK / CATEGORY accordion interaction fix ===== */
@media (max-width: 1024px) {
  /* Let the LINK details grow vertically so CATEGORY is pushed down
     by exactly the opened LINK panel height. */
  .site-header-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .header-links {
    align-items: flex-start;
    overflow: visible !important;
    margin-left: auto;
  }

  .header-links-menu {
    position: relative !important;
    display: inline-block !important;
    vertical-align: top;
    overflow: visible !important;
  }

  .header-links-menu-panel,
  .header-links-menu[open] .header-links-menu-panel {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    display: none !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: 16rem;
    margin: 0.45rem 0 0 auto !important;
    padding: 0 !important;
    text-align: right !important;
    white-space: normal !important;
  }

  .header-links-menu[open] .header-links-menu-panel {
    display: block !important;
  }

  .header-links-menu-panel a {
    display: block !important;
    width: max-content;
    max-width: 16rem;
    margin: 0 0 0 auto !important;
    text-align: right !important;
    line-height: 1.8;
  }

  /* CATEGORY stays below the whole quick-link row, including the
     expanded LINK list. */
  .header-categories {
    flex: 0 0 auto;
    margin-top: 0 !important;
  }
}

/* ===== Tablet/mobile LINK accordion v2 =====
   Keep guestbook / notice / tag / link fixed in place.
   LINK opens below its own label; only CATEGORY is pushed down. */
@media (max-width: 1400px) {
  .site-header-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    overflow: visible !important;
  }

  .header-links {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    margin-left: auto !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
  }

  .header-links.link-expanded {
    padding-bottom: var(--link-panel-space, 0px) !important;
  }

  .header-links-menu {
    position: relative !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    overflow: visible !important;
  }

  .header-links-menu-panel,
  .header-links-menu[open] .header-links-menu-panel {
    position: absolute !important;
    top: calc(100% + 0.45rem) !important;
    right: 0 !important;
    left: auto !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: 16rem !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    white-space: normal !important;
    z-index: 30 !important;
  }

  .header-links-menu-panel {
    display: none !important;
  }

  .header-links-menu[open] .header-links-menu-panel {
    display: block !important;
  }

  .header-links-menu-panel a {
    display: block !important;
    width: max-content !important;
    max-width: 16rem !important;
    margin: 0 0 0 auto !important;
    text-align: right !important;
    line-height: 1.8 !important;
    white-space: normal !important;
  }

  .header-categories {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
  }
}

/* ===== iPad Safari hard-close fix for LINK / CATEGORY ===== */
.header-links-menu:not([open]) > .header-links-menu-panel,
.header-categories:not([open]) > .header-categories-panel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.header-links-menu[open] > .header-links-menu-panel,
.header-categories[open] > .header-categories-panel {
  visibility: visible !important;
  pointer-events: auto !important;
}

/* ===== FINAL LINK / CATEGORY MENU BEHAVIOR =====
   JS uses .is-open instead of Safari's native <details open> state. */
.header-links-menu > .header-links-menu-panel,
.header-categories > .header-categories-panel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.header-links-menu.is-open > .header-links-menu-panel,
.header-categories.is-open > .header-categories-panel {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Tablet + desktop: LINK opens exactly like CATEGORY —
   vertically to the right of its label. Nothing below is pushed. */
@media (min-width: 761px) {
  .site-header-panel {
    display: block !important;
    overflow: visible !important;
  }

  .header-links {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    margin-left: auto !important;
    margin-bottom: 0.6rem !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
  }

  .header-links.link-expanded {
    padding-bottom: 0 !important;
  }

  .header-links-menu {
    position: relative !important;
    display: inline-block !important;
    width: auto !important;
    overflow: visible !important;
  }

  .header-links-menu > .header-links-menu-panel,
  .header-links-menu.is-open > .header-links-menu-panel {
    position: absolute !important;
    top: 0 !important;
    left: calc(100% + 1rem) !important;
    right: auto !important;
    width: max-content !important;
    max-width: 16rem !important;
    margin: 0 !important;
    padding: 0 0 0 0.25rem !important;
    text-align: left !important;
    z-index: 40 !important;
  }

  .header-links-menu-panel a {
    display: block !important;
    width: max-content !important;
    max-width: 16rem !important;
    margin: 0 !important;
    text-align: left !important;
    line-height: 1.8 !important;
  }

  .header-categories {
    margin-top: 0 !important;
  }
}

/* Mobile only: LINK opens directly below LINK and takes up real height,
   so CATEGORY moves down by the opened list height. */
@media (max-width: 760px) {
  .site-header-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    overflow: visible !important;
  }

  .header-links {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    margin-left: auto !important;
    margin-bottom: 0.6rem !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
  }

  .header-links-menu {
    position: relative !important;
    display: inline-block !important;
    width: auto !important;
    overflow: visible !important;
  }

  .header-links-menu > .header-links-menu-panel,
  .header-links-menu.is-open > .header-links-menu-panel {
    position: static !important;
    width: max-content !important;
    max-width: 16rem !important;
    margin: 0.45rem 0 0 auto !important;
    padding: 0 !important;
    text-align: right !important;
  }

  .header-links-menu-panel a {
    display: block !important;
    width: max-content !important;
    max-width: 16rem !important;
    margin: 0 0 0 auto !important;
    text-align: right !important;
    line-height: 1.8 !important;
  }

  .header-categories {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
  }

  .header-categories > .header-categories-panel,
  .header-categories.is-open > .header-categories-panel {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 0.5rem !important;
    padding-left: 0 !important;
    text-align: right !important;
  }
}

/* ===== 2026-09-03 stable LINK / CATEGORY controller =====
   Regular div/button menus avoid iPad Safari <details> toggle races. */
.header-links-menu-toggle,
.header-categories-label {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  cursor: pointer !important;
  user-select: none !important;
  white-space: nowrap !important;
}

.header-links-menu > .header-links-menu-panel,
.header-categories > .header-categories-panel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.header-links-menu.is-open > .header-links-menu-panel,
.header-categories.is-open > .header-categories-panel {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* iPad + desktop: LINK opens to the right just like CATEGORY. */
@media (min-width: 761px) {
  .site-header-panel {
    display: block !important;
    overflow: visible !important;
  }

  .header-links {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    margin-left: auto !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
  }

  .header-links-menu {
    position: relative !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    overflow: visible !important;
  }

  .header-links-menu > .header-links-menu-panel,
  .header-links-menu.is-open > .header-links-menu-panel {
    position: absolute !important;
    top: 0 !important;
    left: calc(100% + 1rem) !important;
    right: auto !important;
    width: max-content !important;
    max-width: 16rem !important;
    margin: 0 !important;
    padding: 0 0 0 0.25rem !important;
    text-align: left !important;
    z-index: 60 !important;
  }

  .header-links-menu-panel a {
    display: block !important;
    width: max-content !important;
    max-width: 16rem !important;
    margin: 0 !important;
    text-align: left !important;
    line-height: 1.8 !important;
  }
}

/* Mobile: the quick-link row NEVER moves. LINK panel is absolute under
   the LINK label, while CATEGORY alone is pushed down by the panel height. */
@media (max-width: 760px) {
  .site-header-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    overflow: visible !important;
    --mobile-link-space: 0px;
  }

  .header-links {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    margin-left: auto !important;
    margin-bottom: 0.6rem !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
  }

  .header-links-menu {
    position: relative !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    overflow: visible !important;
  }

  .header-links-menu > .header-links-menu-panel,
  .header-links-menu.is-open > .header-links-menu-panel {
    position: absolute !important;
    top: calc(100% + 0.45rem) !important;
    right: 0 !important;
    left: auto !important;
    width: max-content !important;
    max-width: 16rem !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    z-index: 60 !important;
  }

  .header-links-menu-panel a {
    display: block !important;
    width: max-content !important;
    max-width: 16rem !important;
    margin: 0 0 0 auto !important;
    text-align: right !important;
    line-height: 1.8 !important;
  }

  .header-categories {
    flex: 0 0 auto !important;
    margin-top: var(--mobile-link-space, 0px) !important;
  }

  .header-categories > .header-categories-panel,
  .header-categories.is-open > .header-categories-panel {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 0.5rem !important;
    padding-left: 0 !important;
    text-align: right !important;
  }
}


/* ===== LINK / CATEGORY pressed + open blue state FIX ===== */
.header-links-menu-toggle,
.header-categories-label {
  transition: color .12s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* 손가락/마우스로 누르는 순간 */
.header-links-menu-toggle:active,
.header-categories-label:active {
  color: var(--accent) !important;
}

/* 펼쳐진 동안 유지 */
.header-links-menu.is-open > .header-links-menu-toggle,
.header-categories.is-open > .header-categories-label,
.header-links-menu-toggle[aria-expanded="true"],
.header-categories-label[aria-expanded="true"] {
  color: var(--accent) !important;
}


/* ===== MOBILE LINK MENU VISIBILITY FIX ===== */
@media (max-width: 760px) {
  .header-links-menu {
    position: relative !important;
    display: inline-flex !important;
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .header-links-menu-toggle {
    position: relative !important;
    z-index: 3 !important;
  }

  .header-links-menu-panel {
    position: static !important;
    display: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    margin-top: 7px !important;
    width: max-content !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .header-links-menu.is-open > .header-links-menu-panel,
  .header-links-menu-toggle[aria-expanded="true"] + .header-links-menu-panel {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
  }

  .header-links-menu-panel a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: nowrap !important;
  }
}


/* ===== MOBILE: keep LINK button itself inside the screen ===== */
@media (max-width: 760px) {
  .site-header-panel {
    align-items: flex-end !important;
    overflow: visible !important;
  }

  /* The old margin-left:auto caused an over-wide max-content row to
     overflow toward the RIGHT on narrow Safari layouts. Anchor its
     RIGHT edge to the header panel instead. */
  .header-links {
    width: max-content !important;
    max-width: none !important;
    align-self: flex-end !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
  }

  .header-links-menu {
    position: relative !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    overflow: visible !important;
  }

  .header-links-menu-toggle {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  /* LINK list stays under LINK; the quick-link row itself never moves. */
  .header-links-menu > .header-links-menu-panel {
    position: absolute !important;
    top: calc(100% + 0.45rem) !important;
    right: 0 !important;
    left: auto !important;
    width: max-content !important;
    margin: 0 !important;
  }

  .header-links-menu.is-open > .header-links-menu-panel,
  .header-links-menu-toggle[aria-expanded="true"] + .header-links-menu-panel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .header-categories {
    align-self: flex-end !important;
  }
}


/* 스킨편집에서 LINK 메뉴를 끈 경우 마지막 구분점 정리 */
.header-links > .header-links-dot:last-child {
  display: none;
}


/* ===== 접은글 버튼 크기 축소 ===== */
.moreless_fold,
.moreless_top,
.moreless_bottom,
button.moreless_fold,
a.moreless_fold {
  font-size: 10px !important;
  line-height: 1.45 !important;
  padding: 3px 7px !important;
  min-height: 0 !important;
}

.moreless_content {
  margin-top: 5px !important;
}


/* ===== 접은글 표시 글씨 = 본문 글자 크기 ===== */
.moreless_fold,
.moreless_top,
.moreless_bottom,
button.moreless_fold,
a.moreless_fold {
  font-size: inherit !important;
  line-height: inherit !important;
}


/* ===== 티스토리 접은글 토글 문구 크기 =====
   '더보기'라는 글자 자체가 아니라 접은글 열기/닫기 토글 전체에 적용 */
.article-view .article-body .moreless_fold,
.article-view .article-body .moreless_top,
.article-view .article-body .moreless_bottom,
.article-view .article-body a.moreless_fold,
.article-view .article-body button.moreless_fold,
.article-view .article-body .moreless_fold span,
.article-view .article-body .moreless_top span,
.article-view .article-body .moreless_bottom span,
.tt_article_useless_p_margin .moreless_fold,
.tt_article_useless_p_margin .moreless_top,
.tt_article_useless_p_margin .moreless_bottom,
.tt_article_useless_p_margin .moreless_fold span,
.tt_article_useless_p_margin .moreless_top span,
.tt_article_useless_p_margin .moreless_bottom span {
  font-size: 1em !important;
  line-height: inherit !important;
  font-weight: inherit !important;
}


/* ===== 실제 티스토리 접은글 토글 크기 강제 수정 ===== */
.article-body-wrap .moreless_fold,
.article-body-wrap .moreless_top,
.article-body-wrap .moreless_bottom,
.article-body-wrap .moreless_before,
.article-body-wrap .moreless_after,
.article-body-wrap [class*="moreless"],
.article-body-wrap [data-ke-type="moreLess"] > button,
.article-body-wrap [data-ke-type="moreLess"] > a,
.article-body-wrap [data-ke-type="moreLess"] .btn-toggle-moreless,
.article-body-wrap [data-ke-type="moreLess"] .moreless_fold,
.article-body-wrap [data-ke-type="moreLess"] .moreless_top,
.article-body-wrap [data-ke-type="moreLess"] .moreless_bottom,
.tt_article_useless_p_margin [data-ke-type="moreLess"] > button,
.tt_article_useless_p_margin [data-ke-type="moreLess"] > a,
.tt_article_useless_p_margin [data-ke-type="moreLess"] [class*="moreless"] {
  font-size: 12px !important;
  line-height: 1.8 !important;
  font-weight: 400 !important;
}

/* 티스토리가 내부 span 등에 큰 폰트를 직접 주는 경우까지 덮어쓰기 */
.article-body-wrap [data-ke-type="moreLess"] > button *,
.article-body-wrap [data-ke-type="moreLess"] > a *,
.article-body-wrap [data-ke-type="moreLess"] [class*="moreless"] *,
.tt_article_useless_p_margin [data-ke-type="moreLess"] > button *,
.tt_article_useless_p_margin [data-ke-type="moreLess"] > a *,
.tt_article_useless_p_margin [data-ke-type="moreLess"] [class*="moreless"] * {
  font-size: 12px !important;
  line-height: 1.8 !important;
}

/* LINK / CATEGORY arrow removal */
.header-links-menu-toggle::before,
.header-links-menu-toggle::after,
.header-categories-label::before,
.header-categories-label::after {
  content:none !important;
  display:none !important;
}
