/* The shortcode owns the public Page heading and constrained interior. */
body.hwayang-tm-page .wp-site-blocks > .hwayang-trademark-tool-page,
body.hwayang-tm-page .wp-site-blocks > .hwayang-trademark-tool-page + footer.wp-block-template-part {
  margin-block-start: 0;
}
body.hwayang-tm-page .hwayang-trademark-tool-page,
body.hwayang-tm-page .hwayang-trademark-tool-page .wp-block-post-content {
  width: 100%;
  max-width: none;
  padding: 0;
}
body.hwayang-tm-page .hwayang-trademark-tool-page .wp-block-post-content > .wp-block-shortcode {
  width: 100%;
  max-width: none;
  margin: 0;
}
body.hwayang-tm-page .hwayang-generic-page {
  max-width: none;
  padding: 0 !important;
  margin: 0;
}
body.hwayang-tm-page .hwayang-generic-page > .entry-content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-inline: 0;
}
body.hwayang-tm-page .entry-content > .hy-tm,
body.hwayang-tm-page .entry-content > .wp-block-shortcode:has(> .hy-tm) {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}
.hy-tm {
  --tm-navy: var(--wp--custom--hwayang--color--primary-dark, #1f2d5b);
  --tm-blue: var(--wp--custom--hwayang--color--primary, #1677ff);
  --tm-orange: var(--wp--custom--hwayang--color--accent, #ff6400);
  --tm-muted: var(--wp--custom--hwayang--color--text-secondary, #667a99);
  --tm-border: var(--wp--custom--hwayang--color--border, #e6eef7);
  color: var(--tm-navy);
  background: linear-gradient(180deg, #f7faff 0%, #f7faff calc(100% - 160px), #fff 100%);
  line-height: 1.55;
  font-size: 16px;
  font-family: var(--wp--preset--font-family--sans, "Microsoft YaHei", "PingFang SC", sans-serif);
  font-stretch: normal;
  font-variation-settings: normal;
}
.hy-tm h1, .hy-tm h2, .hy-tm h3 { letter-spacing: normal; }
.hy-tm *, .hy-tm *::before, .hy-tm *::after { box-sizing: border-box; }
.hy-tm button, .hy-tm input, .hy-tm select { font: inherit; }
.hy-tm button { cursor: pointer; }
.hy-tm button:focus-visible, .hy-tm a:focus-visible, .hy-tm input:focus-visible, .hy-tm select:focus-visible { outline: 3px solid var(--tm-orange); outline-offset: 3px; }
.hy-tm [hidden] { display: none !important; }
.hy-tm__container { width: min(100% - 48px, 1240px); margin-inline: auto; }
.hy-tm__hero { position: relative; isolation: isolate; min-height: 230px; padding: 30px 0 52px; background: linear-gradient(180deg, #eaf4ff, #f7faff); }
.hy-tm__hero::before { content: ''; position: absolute; inset-block: 0; left: 50%; width: min(100% - 48px, 1240px); transform: translateX(-50%); background: url('main-banner.webp') center center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.hy-tm__hero--detail::before { background-image: url('detail-banner.webp'); }
.hy-tm__hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, #f7faff 100%); pointer-events: none; }
.hy-tm__hero > .hy-tm__container { position: relative; z-index: 1; }
.hy-tm__breadcrumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--tm-muted); margin-bottom: 20px; }
.hy-tm__breadcrumbs a { color: inherit; text-decoration: none; }
.hy-tm__breadcrumbs a:hover { color: var(--tm-blue); text-decoration: underline; }
.hy-tm__crumb-detail { display: inline-flex; gap: 10px; }
.hy-tm__hero h1 { font-size: clamp(32px, 3.3vw, 48px); line-height: 1.18; margin: 0 0 10px; color: var(--tm-navy); }
.hy-tm__hero p { margin: 0; max-width: 820px; }
.hy-tm__hero .hy-tm__hero-lead { max-width: 700px; color: var(--tm-muted); font-size: clamp(14px, 1.1vw, 16px); }
.hy-tm__app { padding: 26px 0 66px; }
body.hwayang-tm-page .hwayang-site-footer { border-top-color: transparent; }
.hy-tm__status { padding: 12px 18px; border: 1px solid #cde5ff; border-radius: 8px; color: #13549b; background: #edf6ff; margin-bottom: 18px; }
.hy-tm__status.is-error { border-color: #ffd9c1; color: #93420f; background: #fff5ed; }
.hy-tm__layout { display: grid; grid-template-columns: minmax(240px, 278px) minmax(0, 1fr); gap: 20px; align-items: start; }
.hy-tm__content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.hy-tm__panel { min-width: 0; border: 1px solid var(--tm-border); border-radius: 10px; background: #fff; box-shadow: 0 4px 16px rgba(31, 45, 91, .05); }
.hy-tm__tree-panel { position: sticky; top: 24px; display: flex; flex-direction: column; height: var(--hy-tm-tree-height, min(640px, calc(100dvh - 48px))); overflow: hidden; padding: 20px 14px; border: 1px solid var(--tm-border); border-radius: 10px; background: #fff; box-shadow: 0 4px 16px rgba(31, 45, 91, .05); }
.hy-tm__tree-panel h2, .hy-tm__panel h2 { font-size: 20px; line-height: 1.35; margin: 0; color: var(--tm-navy); }
.hy-tm__tree-panel h2, .hy-tm__search-panel h2, .hy-tm__results .hy-tm__section-head h2 { display: inline-flex; align-items: center; gap: 9px; }
.hy-tm__tree-panel h2 .hwayang-icon, .hy-tm__search-panel h2 .hwayang-icon, .hy-tm__results h2 .hwayang-icon { flex: 0 0 auto; color: var(--tm-blue); }
.hy-tm__tree-panel h2 { flex: 0 0 auto; margin: 0 8px 16px; font-size: 18px; }
.hy-tm__tree { min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
.hy-tm__tree-class { margin: 2px 0; }
.hy-tm__tree-class-button, .hy-tm__tree-group { border: 0; color: var(--tm-navy); text-align: left; width: 100%; background: transparent; }
.hy-tm .hy-tm__tree-class-button { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; font-size: 15px; line-height: 1.45; font-weight: 700; }
.hy-tm__tree-class-button[aria-expanded=true] { color: var(--tm-orange); background: #fff4ed; }
.hy-tm__tree-class-button:hover, .hy-tm__tree-group:hover { background: #f2f7ff; }
.hy-tm__chevron { display: inline-block; font-size: 24px; line-height: 14px; font-weight: 400; transition: transform .15s ease; }
.hy-tm__tree-class-button[aria-expanded=true] .hy-tm__chevron { transform: rotate(90deg); }
.hy-tm__tree-groups { margin: 0 0 12px 20px; padding-left: 12px; border-left: 1px solid #dbe6f2; }
.hy-tm .hy-tm__tree-group { display: block; padding: 7px 8px; border-radius: 5px; color: #3d5170; font-size: 13px; line-height: 1.45; }
.hy-tm__tree-group.is-active { background: #fff2e9; color: #cf4f09; }
.hy-tm__tree-loading { padding: 8px; margin: 0; font-size: 13px; color: var(--tm-muted); }
.hy-tm__search-panel, .hy-tm__results, .hy-tm__selection { padding: 20px; }
.hy-tm__search-panel h2 { margin-bottom: 16px; }
.hy-tm__search-form { display: flex; gap: 10px; }
.hy-tm__search-form input { min-width: 0; flex: 1; height: 48px; padding: 0 16px; border: 1px solid #c8d6e8; border-radius: 8px; color: var(--tm-navy); background: #fff; }
.hy-tm__search-form input::placeholder { color: #8999ae; }
.hy-tm__search-form button { min-width: 124px; min-height: 48px; padding: 0 20px; border: 1px solid var(--tm-orange); border-radius: 8px; color: #fff; background: var(--tm-orange); font-weight: 700; }
.hy-tm__search-form button:hover { background: #da5200; }
.hy-tm__hot { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 14px; color: #4e6180; font-size: 14px; }
.hy-tm__hot > div { display: flex; flex-wrap: wrap; gap: 7px; }
.hy-tm__hot-chip, .hy-tm__group-chip { padding: 5px 12px; border: 0; border-radius: 99px; background: #f0f5fb; color: #456080; font-size: 13px; }
.hy-tm__hot-chip:hover, .hy-tm__group-chip:hover { color: #0f59aa; background: #dfeeff; }
.hy-tm__section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hy-tm__section-head > span { color: var(--tm-muted); font-size: 14px; }
.hy-tm__filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.hy-tm__filters select { min-height: 38px; max-width: 210px; border: 1px solid #cbd9ea; border-radius: 6px; padding: 4px 9px; background: #fff; color: var(--tm-navy); }
.hy-tm__group-notes { margin-bottom: 14px; padding: 13px 16px; border-left: 3px solid var(--tm-blue); border-radius: 0 7px 7px 0; background: #f2f7fd; }
.hy-tm__group-notes h3 { margin: 0 0 7px; font-size: 15px; line-height: 1.5; color: var(--tm-navy); }
.hy-tm__group-notes p { margin: 0 0 8px; color: #435a79; font-size: 14px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.hy-tm__group-notes p:last-child { margin-bottom: 0; }
.hy-tm__text-button { border: 0; padding: 5px 3px; background: transparent; color: #0068c9; font-size: 14px; font-weight: 650; white-space: nowrap; }
.hy-tm__text-button:hover { text-decoration: underline; }
.hy-tm__table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--tm-border); border-radius: 8px; }
.hy-tm__table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.hy-tm__table th { text-align: left; background: #f0f5fb; color: var(--tm-navy); font-weight: 700; white-space: nowrap; }
.hy-tm__table th, .hy-tm__table td { padding: 10px 12px; border-bottom: 1px solid var(--tm-border); vertical-align: top; }
.hy-tm__table tbody tr:last-child td { border-bottom: 0; }
.hy-tm__table tbody tr:hover { background: #f8fbff; }
.hy-tm__item-name { font-weight: 700; min-width: 110px; }
.hy-tm__code-cell { color: #526784; white-space: nowrap; }
.hy-tm__item-kind { display: block; margin-top: 3px; color: var(--tm-muted); font-size: 11px; font-weight: 400; }
.hy-tm__star-legend { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid var(--tm-blue); border-radius: 0 6px 6px 0; background: #f2f7fd; color: #435a79; font-size: 13px; line-height: 1.6; }
.hy-tm__star-legend strong { color: var(--tm-navy); }
.hy-tm__path-cell { min-width: 190px; color: #526784; }
.hy-tm__description-cell { min-width: 150px; color: #526784; }
.hy-tm .hy-tm__includes { color: #187647; font-weight: 700; }
.hy-tm .hy-tm__excludes { color: #b42318; font-weight: 700; }
.hy-tm .hy-tm__clause-line { display: block; margin-top: 10px; }
.hy-tm mark { color: #a94500; background: #fff0db; padding: 0 2px; }
.hy-tm__empty { margin: 0; padding: 26px 12px; color: var(--tm-muted); text-align: center; }
.hy-tm__pagination button.page-numbers { cursor: pointer; }
.hy-tm__pagination button.page-numbers:hover { border-color: var(--wp--custom--hwayang--color--primary); color: var(--wp--custom--hwayang--color--primary); }
.hy-tm__selection { border-color: #d6eaff; background: #fbfdff; font-size: 15px; }
.hy-tm__selection h2 { font-size: 18px; }
.hy-tm__selection h2 span { color: #e25808; }
.hy-tm__selection p { color: #526784; margin: 0 0 12px; }
.hy-tm__group-list { display: flex; gap: 8px; flex-wrap: wrap; }
.hy-tm__selection .hy-tm__group-chip { font-size: 12px; }
.hy-tm__group-chip.is-active { color: #c95308; background: #fff1e7; }
.hy-tm__mobile-nav-button { display: none; }
.hy-tm__detail-actions { margin-bottom: 16px; }
.hy-tm__outline-button { min-height: 38px; padding: 7px 14px; border: 1px solid #dbe4f0; border-radius: 7px; background: #fff; color: var(--tm-navy); }
.hy-tm__outline-button:hover { border-color: #91b5df; color: #0768c8; }
.hy-tm__detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.hy-tm__detail-main { padding: 24px; }
.hy-tm__detail-heading { padding-bottom: 22px; }
.hy-tm__detail-heading h2 { margin: 10px 0 12px; font-size: clamp(28px, 3vw, 36px); }
.hy-tm__badge, .hy-tm__badges span { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 6px; color: #df5607; background: #fff2e7; font-size: 13px; }
.hy-tm__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hy-tm__badges span:last-child { color: #435777; background: #f2f6fb; }
.hy-tm__detail-section { margin-top: 18px; border: 1px solid var(--tm-border); border-radius: 8px; overflow: hidden; }
.hy-tm__detail-section h3 { margin: 0; padding: 10px 16px; background: #f2f7fd; font-size: 17px; color: var(--tm-navy); }
.hy-tm__detail-section p { margin: 0; padding: 14px 16px; color: #334663; line-height: 1.7; }
.hy-tm__info { margin: 0; }
.hy-tm__info-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-top: 1px solid var(--tm-border); }
.hy-tm__info-row dt, .hy-tm__info-row dd { margin: 0; padding: 9px 15px; overflow-wrap: anywhere; }
.hy-tm__info-row dt { color: #536987; background: #fbfdff; border-right: 1px solid var(--tm-border); }
.hy-tm__detail-descriptions .hy-tm__info-row dd { white-space: pre-line; line-height: 1.7; }
.hy-tm__detail-sidebar { display: grid; gap: 16px; }
.hy-tm__detail-sidebar .hy-tm__panel { padding: 18px; }
.hy-tm__detail-sidebar h2 { font-size: 18px; margin: 0 0 13px; }
.hy-tm__path { position: relative; list-style: none; padding: 0 0 0 24px; margin: 0; }
.hy-tm__path::before { content: ''; position: absolute; left: 5px; top: 7px; bottom: 7px; width: 2px; background: #c9dfff; }
.hy-tm__path li { position: relative; padding: 0 0 13px; font-size: 14px; }
.hy-tm__path li:last-child { padding-bottom: 0; color: #d95700; font-weight: 700; }
.hy-tm__path li::before { content: ''; position: absolute; left: -23px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #328cff; }
.hy-tm__path li:last-child::before { background: var(--tm-orange); }
.hy-tm__detail-sidebar .hy-tm__section-head { flex-wrap: nowrap; align-items: center; gap: 8px; }
.hy-tm__detail-sidebar .hy-tm__section-head h2 { margin: 0; white-space: nowrap; }
.hy-tm__detail-sidebar [data-hy-tm-related-more] { font-size: 13px; }
.hy-tm__related { list-style: none; padding: 0; margin: 0; }
.hy-tm__related li { border-top: 1px solid var(--tm-border); }
.hy-tm__related button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 0; border: 0; text-align: left; color: var(--tm-navy); background: transparent; font-size: 14px; }
.hy-tm__related button span:first-child { min-width: 0; }
.hy-tm__related-arrow { flex: 0 0 auto; margin-left: auto; }
.hy-tm__related button:hover { color: #0068c9; }
.hy-tm__notice { padding: 16px 18px; border: 1px solid #cfe6ff; border-radius: 8px; background: #ecf6ff; color: #315b89; font-size: 14px; }
@media (max-width: 1199px) { .hy-tm__container { width: calc(100% - 64px); } .hy-tm__layout { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 900px) { .hy-tm__detail-grid { grid-template-columns: minmax(0, 1fr) 230px; } .hy-tm__layout { grid-template-columns: 210px minmax(0, 1fr); } }
@media (min-width: 768px) and (max-width: 1199px) { .hy-tm__tree-panel { height: calc(var(--hy-tm-tree-height, 640px) + 300px); } }
@media (max-width: 767px) {
  .hy-tm__container { width: calc(100% - 40px); }
  .hy-tm__hero { min-height: 210px; padding: 22px 0 34px; }
  .hy-tm__hero::before { width: calc(100% - 40px); background-position: 61% center; }
  .hy-tm__hero::after { background: linear-gradient(90deg, rgba(247,250,255,.92), rgba(247,250,255,.72) 60%, transparent), linear-gradient(180deg, transparent 65%, #f7faff); }
  .hy-tm__hero h1 { font-size: 34px; }
  .hy-tm__hero p { max-width: 85%; }
  .hy-tm__layout, .hy-tm__detail-grid { display: block; }
  .hy-tm .hy-tm__mobile-nav-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; margin-bottom: 12px; padding: 8px 14px; border: 1px solid #cbdff3; border-radius: 8px; background: #fff; color: var(--tm-navy); font-weight: 700; }
  .hy-tm__mobile-nav-button .hwayang-icon { flex: 0 0 auto; color: var(--tm-blue); }
  .hy-tm__tree-panel { position: static; display: block; height: auto; margin-bottom: 14px; padding: 0; border: 0; box-shadow: none; }
  .hy-tm__tree-panel h2 { display: none; }
  .hy-tm__tree { display: none; max-height: min(320px, 44vh); overflow-y: auto; padding: 10px; border: 1px solid var(--tm-border); border-radius: 8px; background: #fff; }
  .hy-tm__tree.is-open { display: block; }
  .hy-tm__detail-sidebar { margin-top: 16px; }
}
@media (max-width: 479px) {
  .hy-tm__hero::before { background-position: 65% center; }
  .hy-tm__hero h1 { font-size: 30px; }
  .hy-tm__hero p { max-width: 100%; font-size: 14px; }
  .hy-tm__breadcrumbs { font-size: 12px; gap: 6px; }
  .hy-tm__app { padding-top: 18px; }
  .hy-tm__search-panel, .hy-tm__results, .hy-tm__selection, .hy-tm__detail-main { padding: 16px; }
  .hy-tm__search-form { display: grid; }
  .hy-tm__search-form button { width: 100%; }
  .hy-tm__section-head { align-items: start; }
  .hy-tm__filters select { max-width: 165px; }
  .hy-tm__info-row { grid-template-columns: 105px minmax(0, 1fr); font-size: 13px; }
  .hy-tm__info-row dt, .hy-tm__info-row dd { padding: 9px 10px; }
  .hy-tm__detail-descriptions .hy-tm__info-row { grid-template-columns: minmax(0, 1fr); }
  .hy-tm__detail-descriptions .hy-tm__info-row dt { border-right: 0; border-bottom: 1px solid var(--tm-border); }
}
@media (prefers-reduced-motion: reduce) { .hy-tm__chevron { transition: none; } }
@media print { .hy-tm__hero { background: none; min-height: 0; padding: 0 0 16px; } .hy-tm__hero::before, .hy-tm__hero::after { display: none; } .hy-tm__detail-actions, .hy-tm__detail-sidebar .hy-tm__panel:nth-child(2) { display: none; } .hy-tm__detail-grid { display: block; } .hy-tm__panel { box-shadow: none; } }
