/* Shared language navigation: links remain usable without JavaScript. */
.language-switch{position:relative;flex:none;z-index:60;font:600 12px/1.4 Arial,sans-serif;letter-spacing:.03em;color:#f2dc9b;text-align:left;overflow:visible}
.language-switch>summary{display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;min-height:38px;padding:8px 10px;border:1px solid #d6b66d70;border-radius:5px;background:#0b241b;list-style:none;white-space:nowrap}
.language-switch>summary::-webkit-details-marker{display:none}
.language-switch>summary:hover,.language-switch>summary:focus-visible{background:#d6b66d;color:#102d27;outline:2px solid #ead193;outline-offset:2px}
.language-options{position:absolute;top:calc(100% + 8px);right:0;min-width:165px;padding:7px;border:1px solid #c8aa6d;background:#0a2119;box-shadow:0 12px 32px #0009;border-radius:7px}
.language-options>a{display:block!important;padding:12px 14px;min-height:42px!important;color:#f4eedf!important;border-radius:3px;font-size:13px!important;white-space:nowrap;text-align:left}
.language-options>a:is(:hover,:focus-visible),.language-options>a[aria-current=page]{background:#d6b66d!important;color:#0b241b!important}
header>.header-actions>.language-switch{margin-left:auto}
.journal-header{position:relative;flex-wrap:wrap}
.journal-header>.language-switch{margin-left:auto}
.journal-header>nav{margin-left:auto}
html[lang=zh-Hans] h1,html[lang=zh-Hans] h2,html[lang=zh-Hans] h3,html[lang=zh-Hans] .hero-deck{font-family:"Noto Serif CJK SC","Songti SC","SimSun",serif;line-height:1.3;letter-spacing:.02em}
html[lang=zh-Hans] .article-body{line-height:1.95;letter-spacing:.02em}
html[lang=de] .headline-line{font-size:.86em}
@media(max-width:700px){
 header>.header-actions{display:grid;grid-template-columns:minmax(0,1fr) 54px;grid-template-rows:auto auto;gap:0 3px}
 header>.header-actions>a{grid-column:1;font-size:10px;line-height:1.35;min-width:0;overflow-wrap:normal;letter-spacing:0}
 header>.header-actions>.language-switch{grid-column:2;grid-row:1/3;align-self:center;margin:0}
 .header-actions .language-switch>summary{padding:7px 5px;gap:3px;font-size:11px}
 .language-options{min-width:155px}
 .journal-header{display:grid;grid-template-columns:1fr auto;gap:12px;padding:18px 20px}
 .journal-header>.brand{grid-row:1;grid-column:1}
 .journal-header>.language-switch{grid-row:1;grid-column:2;align-self:center}
 .journal-header>nav{grid-row:2;grid-column:1/3;flex-wrap:wrap;justify-content:flex-start;gap:9px 15px;margin:0}
 .journal-header>nav a{font-size:12px;min-height:38px}
 .journal-hero h1{overflow-wrap:anywhere}
}
/* Photo zoom is confined to its own modal; page layout never grows. */
body.photo-open{overflow:hidden}
#photo-dialog{width:96vw;max-width:1600px;height:94svh;max-height:94svh;margin:auto;padding:10px 12px;overflow:hidden;display:none;border:3px double #ecd18e;background:#061b14;color:#f5ebcd;box-shadow:0 15px 100px #000b}
#photo-dialog[open]{display:flex;flex-direction:column;gap:8px}
#photo-dialog::backdrop{background:#020a07e8;backdrop-filter:blur(5px)}
.photo-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:none;min-height:42px}
#photo-dialog .close{position:static;width:42px;height:42px;font-size:30px;display:grid;place-items:center;background:transparent;color:#f2d28c;border:1px solid #d6b66d}
.photo-zoom{padding:9px 16px;min-height:42px;border:1px solid #d6b66d;background:#d6b66d;color:#102d27;border-radius:3px;cursor:pointer;font:600 13px Arial,sans-serif}
.photo-viewport{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;border:1px solid #d6b66d55;background:#03110d;scrollbar-color:#d6b66d #102d27}
.photo-stage{display:flex;align-items:center;justify-content:center;min-width:100%;min-height:100%}
#photo-dialog .photo-stage img{display:block;flex:none;max-width:none;max-height:none;object-fit:contain;border:0;margin:0}
#photo-dialog .photo-caption{flex:none;margin:0;max-height:3em;overflow:auto;font-size:12px;line-height:1.45;text-align:center}
#photo-dialog .photo-hint{flex:none;margin:0;color:#b4bdb5;font-size:10px;line-height:1.5;text-align:center}
@media(hover:hover) and (pointer:fine){.interactive-photo:hover{transform:translateY(-4px) scale(1.065);filter:brightness(1.045)}.gold-frame:has(.interactive-photo:hover){z-index:2}}
@media(max-width:700px){#photo-dialog{width:97vw;height:94svh;padding:7px;gap:6px}.photo-zoom{font-size:12px;padding:8px 12px}.interactive-photo:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.interactive-photo,.interactive-photo:hover{transition:none;transform:none!important}.language-switch *{transition:none}}
/* Matching interior cards: crop only these two thumbnails; keep full originals in the viewer. */
#philosophy .room-gallery{align-items:stretch}
#philosophy .room-gallery>.gold-frame{position:relative;isolation:isolate;overflow:hidden;padding:9px;border:2px solid #ebce85;background:linear-gradient(125deg,#8c6325,#f8e3a5 28%,#a47a32 52%,#f1d38b 80%,#75521f);box-shadow:inset 0 0 0 2px #d7b45d,0 0 0 1px #5a401a,0 15px 35px #00100b45}
#philosophy .room-gallery>.gold-frame::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;border:3px solid transparent;border-radius:inherit;background:conic-gradient(from var(--frame-angle),transparent 0 78%,#fff5c4 84%,#d8a83f 89%,transparent 95%) border-box;mask:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0);mask-composite:exclude;opacity:0}
@property --frame-angle{syntax:"<angle>";initial-value:0deg;inherits:false}
@keyframes frame-orbit{to{--frame-angle:360deg}}
#philosophy .room-gallery img{width:100%;height:auto;max-height:none;aspect-ratio:4/3;object-fit:cover;object-position:center 55%;background:#102d22;transition:transform .55s ease,filter .55s ease}
#philosophy .room-gallery figure:nth-child(2) img{object-position:center 50%}
#philosophy .room-gallery figcaption{position:relative;z-index:2;margin:0;background:#102d22;padding:14px 10px;min-height:44px}
#philosophy .room-gallery>.gold-frame:focus-within{box-shadow:0 0 22px #dcb95c70,inset 0 0 0 2px #ffe9a7}
#philosophy .room-gallery>.gold-frame:focus-within::after{opacity:1;animation:frame-orbit 2.4s linear infinite}
@media(hover:hover) and (pointer:fine){#philosophy .room-gallery>.gold-frame:hover{box-shadow:0 0 24px #dcb95c70,inset 0 0 0 2px #ffe9a7}#philosophy .room-gallery>.gold-frame:hover::after{opacity:1;animation:frame-orbit 2.4s linear infinite}#philosophy .room-gallery>.gold-frame:hover img{transform:scale(1.045);filter:brightness(1.045)}}
@media(prefers-reduced-motion:reduce){#philosophy .room-gallery img{transition:none!important;transform:none!important}#philosophy .room-gallery>.gold-frame::after{animation:none!important;background:linear-gradient(125deg,#ffe9a7,#b0802d,#ffe9a7) border-box}}
.photo-viewport{scrollbar-gutter:stable both-edges}

/* The owner requested fit-only viewing instead of magnification. */
#photo-dialog .photo-surface{display:block;flex:1;min-height:0;min-width:0;margin:0;overflow:hidden;background:#03110d}
#photo-dialog .photo-surface img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;transform:none!important;border:0;margin:0}
