/* NEW YONG: native return-to-official links. No data or script changes. */
.ornate-header .topbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.ornate-header .tools{min-width:0}
a.official-return{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px;border:1px solid #a77c40;border-radius:3px;background:linear-gradient(180deg,#382717,#21160e);color:#ffe0a2;white-space:nowrap;font-size:12px;font-weight:700;line-height:1.5;letter-spacing:.02em;text-decoration:none;box-shadow:inset 0 1px 0 #ffdb9422;transition:background .18s,border-color .18s,color .18s}
a.official-return .official-return-text{display:inline}
a.official-return svg{width:16px;height:16px;flex:none}
a.official-return:hover{background:linear-gradient(180deg,#51391e,#312012);border-color:#e2b56d;color:#fff0c9;text-decoration:none}
a.official-return:focus-visible,a.official-return-footer:focus-visible{outline:2px solid #ffdc8f;outline-offset:3px}
a.official-return-footer{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:4px 0;min-height:32px;color:#f2cc89;text-decoration:underline;text-underline-offset:4px;font-size:12px;font-weight:600}
a.official-return-footer:hover{color:#fff0c9}
@media(min-width:761px) and (max-width:1120px){
 .ornate-header .tools{display:grid;grid-template-columns:repeat(3,auto);gap:5px;justify-content:end}
 .ornate-header .tools .official-return{grid-column:1/-1;grid-row:1;min-height:36px}
 .ornate-header .tools .search-tool{grid-column:1;grid-row:2}
 .ornate-header .tools [data-view=saved]{grid-column:2;grid-row:2}
 .ornate-header .tools #motion{grid-column:3;grid-row:2}
}
@media(max-width:760px){
 html{scroll-padding-top:195px}
 .ornate-header .topbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);row-gap:6px;padding-bottom:10px}
 .ornate-header .crest-brand{grid-column:2;grid-row:1}
 .ornate-header .tools{grid-column:1/-1;grid-row:2;justify-self:stretch;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px}
 .ornate-header .tools .official-return{min-height:40px;padding:8px 12px;font-size:12px}
 .ornate-header .tools .tool{min-height:40px;min-width:36px;justify-content:center}
 .ornate-header .tools #motion{position:static;inset:auto;width:auto;min-width:36px}
 a.official-return-footer{min-height:40px}
}
@media(prefers-reduced-motion:reduce){a.official-return{transition:none}}
body.calm a.official-return{transition:none}
