/* Harbour article and composer surfaces. Existing content and access controls remain authoritative. */
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]){
  --reading-ink:var(--harbour-ink,#1e3029);
  --reading-accent:var(--harbour-deep,#163d31);
  --reading-muted:#52675b;
  --reading-line:#d8e3dc;
  --reading-soft:#f2f6f1;
  --reading-radius:30px;
  --reading-shadow:0 18px 54px -34px rgba(29,62,45,.24);
  color:var(--reading-ink);
}
/* The title band is separate from the article, so original media keeps its full usable width. */
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"])>.bv-head{
  position:relative;align-items:flex-start;flex-direction:column;gap:26px;
  margin:0 0 24px;padding:clamp(26px,4.5vw,54px);border:1px solid #dce6dc;
  border-radius:var(--reading-radius);background:radial-gradient(ellipse at 92% 0%,#f6ead7 0,transparent 54%),linear-gradient(125deg,#e9f2e9,#f5f7ef 68%,#eef3ed);
  box-shadow:var(--reading-shadow);
}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"])>.bv-head h2,
.harbour-site #boardView[data-board-mode="detail"] .training-post-heading h2,
.harbour-site #boardView[data-board-mode="compose"] .training-editor>h2,
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) .guest-question-panel>h2{
  max-width:100%;margin:0;color:var(--reading-ink);font-size:clamp(28px,3.5vw,44px);
  font-weight:650;line-height:1.32;letter-spacing:-.045em;word-break:keep-all;overflow-wrap:anywhere;
}
.harbour-site #boardView[data-board-mode="detail"]>.bv-head{padding-bottom:56px}
.harbour-site #boardView[data-board-mode="detail"]>.post-meta{
  position:relative;width:fit-content;max-width:calc(100% - 40px);box-sizing:border-box;
  margin:-42px 20px 28px;padding:12px 20px;border:1px solid var(--reading-line);
  border-radius:18px;background:#fff;box-shadow:0 8px 24px -18px rgba(32,61,45,.28);
  color:var(--reading-muted);font-size:13px;line-height:1.9;overflow-wrap:anywhere;
}
.harbour-site #boardView[data-board-mode="detail"]>.post-tags,
.harbour-site #boardView[data-board-mode="detail"]>.library-facets{margin:0 22px 24px}
.harbour-site #boardView[data-board-mode="detail"] :is(.post-label,.research-group-label,.question-category,.training-state){
  padding:4px 10px;border-radius:999px;font-size:12px;line-height:1.65;letter-spacing:0;
}
.harbour-site #boardView[data-board-mode="detail"] .post-tags a{
  border-color:#dce5dc;background:#f3f6f1;color:#375f49;border-radius:999px;padding:5px 12px;
}
.harbour-site #boardView[data-board-mode="detail"]>.library-use-notice{
  margin:24px 0;padding:22px 26px;border:1px solid #d8e4da;border-left:4px solid #708d76;
  border-radius:20px;background:linear-gradient(110deg,#f1f6ee,#fbfbf7);color:#425a4b;
}
.harbour-site #boardView[data-board-mode="detail"] .library-use-notice strong{color:#284d38}
.harbour-site #boardView[data-board-mode="detail"] .library-use-notice a{color:#25563b}
.harbour-site #boardView[data-board-mode="detail"]>:is(#postBody,#managedBody),
.harbour-site #boardView[data-board-mode="detail"] .training-post>.training-body{
  box-sizing:border-box;max-width:100%;margin:28px 0;padding:clamp(24px,4.6vw,54px);
  border:1px solid #e1e8e1;border-radius:var(--reading-radius);background:#fff;
  box-shadow:var(--reading-shadow);
}
.harbour-site #boardView[data-board-mode="detail"] :is(.post-body:not(.research-reading),.training-body){
  color:#2b3d31;font-size:17px;line-height:1.95;overflow-wrap:anywhere;
}
.harbour-site #boardView[data-board-mode="detail"] :is(.post-body,.training-body) :is(h2,h3,h4){
  margin-block:1.8em .7em;color:var(--reading-ink);line-height:1.45;letter-spacing:-.025em;overflow-wrap:anywhere;
}
.harbour-site #boardView[data-board-mode="detail"] :is(.post-body,.training-body) h2{font-size:1.55em}
.harbour-site #boardView[data-board-mode="detail"] :is(.post-body,.training-body) h3{font-size:1.28em}
.harbour-site #boardView[data-board-mode="detail"] :is(.post-body,.training-body) blockquote{
  margin:1.7em 0;padding:18px 24px;border-left:3px solid #7b9b7d;border-radius:0 16px 16px 0;background:#f3f6ef;
}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) :is(.post-body,.training-body,.editor-preview,.rich-body) :is(a.body-link,.research-reading-link){
  color:#246044;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;
}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) :is(.post-body,.training-body,.editor-preview,.rich-body) :is(table,pre){max-width:100%;overflow-x:auto}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) :is(.post-body,.training-body,.editor-preview,.rich-body) table:not([hidden]){display:block;border-collapse:collapse}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) :is(.post-body,.training-body,.editor-preview,.rich-body) :is(th,td){padding:12px 14px;border:1px solid #d8e3dc;text-align:start}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) :is(.post-body,.training-body,.editor-preview,.rich-body) :is(img,video){max-width:100%;height:auto}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) :is(.body-image,.body-video){max-width:100%;margin:28px 0}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) :is(.body-image img,.body-video video){border-radius:16px}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) .body-video-caption{gap:8px 14px;margin-top:12px;color:var(--reading-muted);font-size:13px}
.harbour-site #boardView[data-board-mode="detail"] .managed-images{gap:24px;margin:28px 0}
.harbour-site #boardView[data-board-mode="detail"] .managed-images :is(img,video){max-width:100%;height:auto;border-radius:22px}
.harbour-site #boardView[data-board-mode="detail"] .research-source{border-color:#dce5dd;color:var(--reading-muted)}
.harbour-site #boardView[data-board-mode="detail"] .research-file-link{border-color:#d8e4db;background:#f3f7f1;border-radius:12px}
/* Download names remain the primary control; no extra labels are injected. */
.harbour-site #boardView[data-board-mode="detail"] :is(.managed-files,.training-files){list-style:none;padding:0;margin:28px 0}
.harbour-site #boardView[data-board-mode="detail"] :is(.managed-files,.training-files)>li{margin:10px 0;padding:0;border:0;min-width:0;overflow-wrap:anywhere}
.harbour-site #boardView[data-board-mode="detail"] :is(.managed-files,.training-files)>li>a:not([hidden]){
  display:block;box-sizing:border-box;max-width:100%;margin:0;padding:20px 24px;
  border:1px solid #d8e3d9;border-radius:19px;background:linear-gradient(115deg,#f1f6ef,#fafbf7);
  color:#254d36;font-size:15px;font-weight:600;line-height:1.65;text-decoration:underline;text-decoration-color:#a8bfa8;text-underline-offset:4px;
  box-shadow:0 7px 24px -20px rgba(29,62,45,.3);
}
.harbour-site #boardView[data-board-mode="detail"] :is(.managed-files,.training-files)>li>a:hover{border-color:#8eac94;background:#eaf2e7;text-decoration-color:currentColor}
.harbour-site #boardView[data-board-mode="detail"] .webapp-card{padding:24px;border:1px solid var(--reading-line);border-radius:24px;background:#f5f7f1}
.harbour-site #boardView[data-board-mode="detail"] .webapp-window{overflow:hidden;border-radius:16px}
.harbour-site #boardView[data-board-mode="detail"] .app-detail-reactions{margin:24px 0}
/* Public and private comments share a quiet surface; their access notices stay visible. */
.harbour-site #boardView[data-board-mode="detail"] :is(.board-comments,.question-comments){
  margin:44px 0 24px;padding:clamp(22px,3.5vw,38px);border:1px solid #dce6db;
  border-radius:var(--reading-radius);background:linear-gradient(140deg,#f0f5ed,#f8f8f2);box-shadow:var(--reading-shadow);min-width:0;
}
.harbour-site #boardView[data-board-mode="detail"] :is(.board-comments,.question-comments)>h3{
  margin:0 0 16px;color:var(--reading-ink);font-size:25px;font-weight:650;line-height:1.4;letter-spacing:-.035em;
}
.harbour-site #boardView[data-board-mode="detail"] :is(.board-comments,.question-comments) :is(.form-note,.comment-invitation,.board-comment-access){color:var(--reading-muted);font-size:14px;line-height:1.8}
.harbour-site #boardView[data-board-mode="detail"] :is(.board-comment-list,.question-comment-list){list-style:none;margin:22px 0 0;padding:0}
.harbour-site #boardView[data-board-mode="detail"] :is(.board-comment-list,.question-comment-list)>li{
  position:relative;min-width:0;margin:14px 0 0;padding:23px 24px;border:1px solid #dce6db;border-radius:19px;background:#fff;
}
.harbour-site #boardView[data-board-mode="detail"] :is(.comment-meta,.question-comment-meta){margin:0 0 10px;color:var(--reading-muted);font-size:12px;line-height:1.7}
.harbour-site #boardView[data-board-mode="detail"] :is(.comment-body,.question-comment-body){margin:0;color:#2b3d31;font-size:15px;line-height:1.85;overflow-wrap:anywhere}
.harbour-site #boardView[data-board-mode="detail"] .question-comment-delete{position:static;margin:14px 6px 0 0;min-height:36px}
.harbour-site #boardView[data-board-mode="detail"] :is(.comment-empty,.question-comment-empty){color:var(--reading-muted);font-size:14px;background:rgba(255,255,255,.55)}
.harbour-site #boardView[data-board-mode="detail"] .comment-form-bottom{gap:12px;margin-top:12px}
.harbour-site #boardView[data-board-mode="detail"] .comment-form-bottom span{color:var(--reading-muted)}
.harbour-site #boardView[data-board-mode="detail"] #answerForm{margin-top:24px}
.harbour-site #boardView[data-board-mode="detail"] #answerForm>.field-label:not([hidden]){display:block;margin:0 0 10px;font-size:14px;font-weight:650}
.harbour-site #boardView[data-board-mode="detail"] .operations-record{
  margin:26px 0;padding:28px;border:1px solid #d9e4dc;border-radius:24px;background:linear-gradient(125deg,#f1f6ef,#fafaf4);box-shadow:var(--reading-shadow);
}
.harbour-site #boardView[data-board-mode="detail"] .operations-record dl{gap:14px 24px}
.harbour-site #boardView[data-board-mode="detail"] .operations-record dt{color:var(--reading-muted)}
.harbour-site #boardView[data-board-mode="detail"] .operations-record dd{color:var(--reading-ink);overflow-wrap:anywhere}
/* Public training uses the same hierarchy as original-board articles. */
.harbour-site #boardView[data-board-mode="detail"] .training-post{max-width:none;margin:0}
.harbour-site #boardView[data-board-mode="detail"] .training-post-heading{
  padding:clamp(26px,4.5vw,54px)!important;margin:0 0 28px;border:1px solid #dce6dc!important;
  border-radius:var(--reading-radius);background:radial-gradient(ellipse at 92% 0%,#f6ead7,transparent 54%),linear-gradient(125deg,#e9f2e9,#f5f7ef)!important;
  box-shadow:var(--reading-shadow)!important;
}
.harbour-site #boardView[data-board-mode="detail"] .training-meta{margin-top:26px;color:var(--reading-muted);gap:10px 18px;line-height:1.75}
.harbour-site #boardView[data-board-mode="detail"] .training-event{margin-top:16px;font-size:14px}
.harbour-site #boardView[data-board-mode="detail"] .training-event a{color:#25553c;text-underline-offset:4px}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) .training-back{margin-bottom:20px;color:#42604b;font-size:14px}
/* Composer: a restrained title band and one continuous paper surface. */
.harbour-site #boardView[data-board-mode="compose"]>.bv-head{padding-bottom:56px}
.harbour-site #boardView[data-board-mode="compose"]>:is(#postForm,#managedForm,#questionForm),
.harbour-site #boardView[data-board-mode="compose"] .training-editor>#trainingForm{
  position:relative;box-sizing:border-box;min-width:0;margin:-42px 22px 28px;padding:clamp(24px,4vw,44px);
  border:1px solid #dce5db;border-radius:26px;background:#fff;box-shadow:var(--reading-shadow);
}
.harbour-site #boardView[data-board-mode="compose"]>#questionForm{margin-top:24px}
.harbour-site #boardView[data-board-mode="compose"]>.form-note{margin:24px 26px;color:var(--reading-muted);font-size:14px;line-height:1.8}
.harbour-site #boardView[data-board-mode="compose"] .training-editor{max-width:none;margin:0}
.harbour-site #boardView[data-board-mode="compose"] .training-editor>h2{
  padding:clamp(26px,4.5vw,54px) clamp(26px,4.5vw,54px) 72px;border:1px solid #dce6dc;border-radius:var(--reading-radius);
  background:radial-gradient(ellipse at 92% 0%,#f6ead7,transparent 54%),linear-gradient(125deg,#e9f2e9,#f5f7ef);
}
.harbour-site #boardView[data-board-mode="compose"] :is(#postForm,#managedForm,#questionForm,#trainingForm)>.field-label:not([hidden]),
.harbour-site #boardView[data-board-mode="compose"] #trainingForm>label:not(.training-consent):not([hidden]){display:block;margin:26px 0 10px;color:#294832;font-size:14px;font-weight:650;line-height:1.6}
.harbour-site #boardView[data-board-mode="compose"] :is(#postForm,#managedForm,#questionForm,#trainingForm)>.field-label:first-child{margin-top:0}
.harbour-site #boardView[data-board-mode="compose"] :is(input.t-in,input#trainingTitle,select,textarea,.rich-body),
.harbour-site #boardView[data-board-mode="detail"] :is(.board-comments,.question-comments,.guest-question-panel) :is(textarea,select){
  box-sizing:border-box;max-width:100%;min-width:0;min-height:48px;padding:13px 16px;border:1px solid #bbcdbd;
  border-radius:13px;background:#fcfdfb;color:#263f2f;font-family:inherit;font-size:16px;font-weight:400;line-height:1.8;box-shadow:inset 0 1px 2px rgba(21,49,30,.025);
}
.harbour-site #boardView[data-board-mode="compose"] :is(input.t-in,input#trainingTitle,select,textarea,.rich-body){width:100%}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) textarea{resize:vertical}
.harbour-site #boardView[data-board-mode="compose"] :is(#w-title,#mcTitle,#trainingTitle){min-height:58px;font-size:18px;letter-spacing:-.015em}
.harbour-site #boardView[data-board-mode="compose"] :is(#postForm,#managedForm,#questionForm,#trainingForm) .rich-body{min-height:350px;padding:24px;border-radius:0 0 16px 16px;background:#fff;font-size:17px;line-height:1.9}
.harbour-site #boardView[data-board-mode="compose"] .rich-body:focus{border-color:#5d8067;box-shadow:0 0 0 3px rgba(55,97,66,.12)}
.harbour-site #boardView[data-board-mode="compose"] .editor-toolbar{
  gap:8px;margin:14px 0 0;padding:12px;border:1px solid #d2dfd1;border-bottom:0;border-radius:16px 16px 0 0;
  background:linear-gradient(100deg,#edf3e9,#f7f8f2);
}
.harbour-site #boardView[data-board-mode="compose"] .editor-toolbar button{min-height:40px;padding:8px 13px;border-color:#ceddce;border-radius:10px;background:#fff;color:#31543c;font-size:13px}
.harbour-site #boardView[data-board-mode="compose"] .editor-toolbar button:hover{background:#e6f0e2;border-color:#90b095;color:#183e27}
.harbour-site #boardView[data-board-mode="compose"] .editor-link-panel{gap:14px;margin:12px 0;padding:20px;border:1px solid #d8e4d4;border-radius:16px;background:#f4f7f0}
.harbour-site #boardView[data-board-mode="compose"] .editor-link-panel label{color:#344e3c}
.harbour-site #boardView[data-board-mode="compose"] .editor-link-panel input{border-color:#bbcdbd;border-radius:10px;color:#263f2f}
.harbour-site #boardView[data-board-mode="compose"] .file-drop-zone{
  margin-top:24px;padding:32px 22px;border:1px dashed #91ac90;border-radius:20px;
  background:radial-gradient(ellipse at 0% 0%,#eaf2e4,transparent 75%),#f7f9f2;color:#36563e;font-size:15px;line-height:1.75;
}
.harbour-site #boardView[data-board-mode="compose"] :is(.rich-body,.file-drop-zone).is-dragging{border-color:#3c6b48;background:#e7f2e2;box-shadow:0 0 0 3px #b5d2ad}
.harbour-site #boardView[data-board-mode="compose"] .editor-file-list{margin:16px 0 22px;padding:0;list-style:none}
.harbour-site #boardView[data-board-mode="compose"] .editor-file-list>li{gap:18px;margin:10px 0;padding:17px 18px;border:1px solid #dbe6d9;border-radius:15px;background:#f8faf5;align-items:flex-start}
.harbour-site #boardView[data-board-mode="compose"] .editor-file-list>li>span{line-height:1.75;color:#3a5140}
.harbour-site #boardView[data-board-mode="compose"] .editor-file-actions{gap:6px}
.harbour-site #boardView[data-board-mode="compose"] .editor-file-actions button{min-height:38px;padding:7px 10px;border-radius:9px;font-size:12px}
.harbour-site #boardView[data-board-mode="compose"] .form-note{margin:12px 0 20px;color:var(--reading-muted);font-size:13px;line-height:1.8}
.harbour-site #boardView[data-board-mode="compose"] :is(.editor-rights-note,.editor-visibility-note){padding:12px 16px;border-left:3px solid #9bb496;border-radius:0 12px 12px 0;background:#f6f8f1}
.harbour-site #boardView[data-board-mode="compose"] :is(.library-fieldset,.operations-fields){min-width:0;margin:0 0 24px;padding:22px;border:1px solid #dae5d6;border-radius:18px;background:#f9faf6}
.harbour-site #boardView[data-board-mode="compose"] :is(.library-fieldset,.operations-fields) legend{padding:0 8px;color:#31503a;font-size:14px;font-weight:650}
.harbour-site #boardView[data-board-mode="compose"] .library-options{gap:12px 20px}
.harbour-site #boardView[data-board-mode="compose"] .library-options label{font-size:14px;color:#38503e}
.harbour-site #boardView[data-board-mode="compose"] input:is([type="checkbox"],[type="radio"]){accent-color:#2d6541}
.harbour-site #boardView[data-board-mode="compose"] .operations-form-intro{margin:0 0 26px;padding:20px;border:1px solid #dbe4d7;border-radius:18px;background:#f1f5ec}
.harbour-site #boardView[data-board-mode="compose"] .training-consent{margin-top:26px;padding:20px;border:1px solid #d8e3d3;border-radius:18px;background:#f4f7ed;color:#3e5544;font-size:14px;line-height:1.75}
.harbour-site #boardView[data-board-mode="compose"] .training-consent input{width:18px;height:18px;min-height:0;flex:none;margin-top:4px}
.harbour-site #boardView[data-board-mode="compose"] :is(#postForm,#managedForm,#questionForm)>.bv-actions,
.harbour-site #boardView[data-board-mode="compose"] .training-editor-actions{margin-top:32px;padding-top:25px;border-top:1px solid #e0e7db;gap:10px}
.harbour-site #boardView[data-board-mode="compose"] :is(.editor-preview,.training-preview){margin-top:28px;padding:clamp(20px,3vw,32px);border:1px solid #dbe4d7;border-radius:22px;background:#fbfcf9;box-shadow:inset 0 0 0 5px #f5f7f0}
/* Private guest questions keep the lookup and staff-response controls in the same protected host. */
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) .guest-question-panel{max-width:none;margin:0;color:var(--reading-ink)}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) .guest-question-panel>h2{padding:34px;border:1px solid #dce6dc;border-radius:26px;background:linear-gradient(120deg,#e9f2e7,#f7f5e9)}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) .guest-question-panel>.form-note{margin:20px 6px;color:var(--reading-muted);font-size:14px}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) .guest-question-panel form{margin:24px 0;padding:clamp(22px,3.5vw,36px);border-color:#dae5d9;border-radius:24px;background:#fff;box-shadow:var(--reading-shadow)}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) .guest-question-panel label{color:#34513d;line-height:1.7}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) .guest-question-panel #guestLookupForm{background:linear-gradient(130deg,#f0f5eb,#fbfaf4)}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) .guest-question-panel h3{margin:26px 0 15px;color:#2d4b36;font-size:22px;letter-spacing:-.025em}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) .guest-question-panel .post-body{padding:24px;border:1px solid #e0e7dc;border-radius:20px;background:#fff;color:#2b3d31;font-size:16px;line-height:1.9}
/* Only interface controls are styled, never buttons or captions supplied inside article text. */
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) :is(.bv-head,.bv-actions,.training-post-actions,.training-editor-actions,.board-comments,.question-comments,.guest-question-panel,.editor-file-actions,.editor-link-panel) button{
  box-sizing:border-box;min-height:44px;max-width:100%;padding:10px 17px;border:1px solid #bdcebd;border-radius:999px;
  background:#fff;color:#2d5139;font-family:inherit;font-size:14px;font-weight:600;line-height:1.5;white-space:normal;cursor:pointer;
}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) :is(.bv-head,.bv-actions,.training-post-actions,.training-editor-actions,.board-comments,.question-comments,.guest-question-panel,.editor-file-actions,.editor-link-panel) button:hover:not(:disabled){border-color:#7c9e82;background:#edf4e9;color:#1e452c}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) :is(.bv-head,.bv-actions,.training-post-actions,.training-editor-actions,.board-comments,.question-comments,.guest-question-panel) button.primary,
.harbour-site #boardView[data-board-mode="detail"] .question-comments #answerSave{
  border-color:var(--reading-accent);background:var(--reading-accent);color:#fff;box-shadow:0 6px 15px -10px #163d31;
}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) :is(.bv-head,.bv-actions,.training-post-actions,.training-editor-actions,.board-comments,.question-comments,.guest-question-panel) button.primary:hover:not(:disabled){background:#255d3c;border-color:#255d3c;color:#fff}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) button:disabled{opacity:.6;cursor:not-allowed}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) :is(.board-status,.training-status){margin-top:16px;color:#405d48;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) :is(a,button,input,select,textarea,summary,[tabindex],.rich-body):focus-visible{outline:3px solid #a64b25;outline-offset:4px}
@media(max-width:700px){
  .harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]){--reading-radius:23px}
  .harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"])>.bv-head{gap:20px;padding:27px 23px}
  .harbour-site #boardView[data-board-mode="detail"]>.bv-head{padding-bottom:56px}
  .harbour-site #boardView[data-board-mode="detail"]>.post-meta{max-width:calc(100% - 24px);margin:-38px 12px 24px;padding:12px 15px;font-size:12px}
  .harbour-site #boardView[data-board-mode="detail"]>:is(#postBody,#managedBody),
  .harbour-site #boardView[data-board-mode="detail"] .training-post>.training-body{padding:25px 21px;margin-block:24px}
  .harbour-site #boardView[data-board-mode="detail"] :is(.post-body:not(.research-reading),.training-body){font-size:16px;line-height:1.9}
  .harbour-site #boardView[data-board-mode="detail"]>.post-tags,
  .harbour-site #boardView[data-board-mode="detail"]>.library-facets{margin-inline:8px}
  .harbour-site #boardView[data-board-mode="detail"] :is(.managed-files,.training-files)>li>a{padding:17px 19px;font-size:14px}
  .harbour-site #boardView[data-board-mode="detail"] :is(.board-comments,.question-comments){padding:23px 18px;margin-top:30px}
  .harbour-site #boardView[data-board-mode="detail"] :is(.board-comment-list,.question-comment-list)>li{padding:19px 17px}
  .harbour-site #boardView[data-board-mode="detail"] :is(.comment-form-bottom,.board-comment-actions,.board-comment-edit-actions){flex-wrap:wrap}
  .harbour-site #boardView[data-board-mode="compose"]>.bv-head{padding-bottom:49px}
  .harbour-site #boardView[data-board-mode="compose"]>:is(#postForm,#managedForm,#questionForm),
  .harbour-site #boardView[data-board-mode="compose"] .training-editor>#trainingForm{margin-inline:8px;margin-top:-40px;padding:25px 19px;border-radius:20px}
  .harbour-site #boardView[data-board-mode="compose"]>#questionForm{margin-top:20px}
  .harbour-site #boardView[data-board-mode="compose"] .training-editor>h2{padding:28px 24px 66px}
  .harbour-site #boardView[data-board-mode="compose"] :is(#postForm,#managedForm,#questionForm,#trainingForm) .rich-body{min-height:300px;padding:18px;font-size:16px}
  .harbour-site #boardView[data-board-mode="compose"] .editor-toolbar{gap:6px;padding:10px}
  .harbour-site #boardView[data-board-mode="compose"] .editor-toolbar button{padding:8px 11px;font-size:12px}
  .harbour-site #boardView[data-board-mode="compose"] .editor-file-list>li{flex-wrap:wrap;padding:15px}
  .harbour-site #boardView[data-board-mode="compose"] .editor-file-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .harbour-site #boardView[data-board-mode="compose"] :is(.library-fieldset,.operations-fields){padding:18px 15px}
  .harbour-site #boardView[data-board-mode="compose"] .training-consent{padding:17px 15px}
  .harbour-site #boardView[data-board-mode="compose"] :is(#postForm,#managedForm,#questionForm)>.bv-actions>button,
  .harbour-site #boardView[data-board-mode="compose"] .training-editor-actions>button{flex:1 1 auto}
  .harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) .guest-question-panel>h2{padding:27px 23px}
  .harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) .guest-question-panel form{padding:23px 19px}
  .harbour-site #boardView[data-board-mode="detail"] .operations-record{padding:23px 19px}
}
@media(max-width:400px){
  .harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"])>.bv-head h2,
  .harbour-site #boardView[data-board-mode="detail"] .training-post-heading h2,
  .harbour-site #boardView[data-board-mode="compose"] .training-editor>h2{font-size:26px}
  .harbour-site #boardView[data-board-mode="detail"]>:is(#postBody,#managedBody),
  .harbour-site #boardView[data-board-mode="detail"] .training-post>.training-body{padding:22px 17px}
  .harbour-site #boardView[data-board-mode="compose"]>:is(#postForm,#managedForm,#questionForm),
  .harbour-site #boardView[data-board-mode="compose"] .training-editor>#trainingForm{margin-inline:0;padding-inline:17px}
}
@media(prefers-reduced-motion:reduce){
  .harbour-site #boardView:is([data-board-mode="detail"],[data-board-mode="compose"]) :is(a,button,input,select,textarea,summary,.rich-body,.file-drop-zone){transition:none;animation:none;scroll-behavior:auto}
}

/* Actual first screens of known public apps; original app links remain authoritative. */
.harbour-site :is(.webapp-card,.hub-card-media,.app-gallery-preview) .app-static-preview{
  position:relative;display:block;box-sizing:border-box;width:100%;height:auto;margin:0;
  overflow:hidden;border:1px solid #d8e3dc;border-radius:18px;background:#fff;
}
.harbour-site :is(.webapp-card,.hub-card-media,.app-gallery-preview) .app-static-preview>img{
  display:block;box-sizing:border-box;width:100%;height:auto;max-width:100%;max-height:none;
  border:0;border-radius:0;object-fit:contain;transform:none;
}
.harbour-site .webapp-card>.app-static-preview--detail{color:inherit;text-decoration:none;cursor:pointer}
.harbour-site .webapp-card>.app-static-preview--detail:hover{border-color:#6c9276;box-shadow:0 10px 28px -22px #163d3166}
.harbour-site .webapp-card>.app-static-preview--detail:focus-visible{outline:3px solid #a64b25;outline-offset:4px}
.harbour-site .webapp-card>.app-static-preview--detail+.btn{margin-top:20px}
.harbour-site :is(.hub-card-media,.app-gallery-preview)>.app-static-preview--compact{
  position:absolute;inset:0;z-index:1;width:100%;height:100%;min-height:0;border:0;
  border-radius:inherit;overflow:hidden;background:#fff;pointer-events:none;
}
.harbour-site :is(.hub-card-media,.app-gallery-preview)>.app-static-preview--compact>img{
  width:100%;height:100%;object-fit:contain;object-position:center;transform:none;
}
.harbour-site .app-gallery-preview:has(>.app-static-preview--compact){position:relative;aspect-ratio:1.8;overflow:hidden}
.harbour-site .app-gallery-preview:has(>.app-static-preview--compact)>.app-preview-open{z-index:2}
@media(max-width:600px){
  .harbour-site .webapp-card>.app-static-preview--detail{border-radius:14px}
}
