/* =====================================================================================
   DOS Community - home feed, Instagram layout (our colors and fonts).
   Left: our menu. Middle: stories + posts. Right: you, suggestions, links.
   ===================================================================================== */

.dosc-app.is-feed .dosc-app-content { background: #fff; }
.dosc-fd {
	--fd-line: #e7dfd9;
	--fd-mut: #73655d;
	--fd-light: #b3a69d;
	--fd-ring: linear-gradient(45deg, #e2c39b 0%, #b8865c 30%, #654638 65%, #24160f 100%);
	display: flex; justify-content: center; gap: 56px; box-sizing: border-box; width: 100%; max-width: 1400px; margin: 0 auto; padding: 22px 28px 70px; color: #000; /* feed + right column: at most 1400px, centered */
}
.dosc-fd-center { flex: 1 1 auto; min-width: 0; } /* the feed uses all the width between the menu and the right column */
.dosc-fd-right { flex: 0 0 319px; padding-top: 30px; }

/* ---------- stories tray ---------- */
.dosc-fd-tray-wrap { position: relative; margin: 0 0 22px; }
.dosc-fd-tray { display: flex; gap: 14px; padding: 6px 2px 4px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.dosc-fd-tray::-webkit-scrollbar { display: none; }
.dosc-app .dosc-fd-st, .dosc-app .dosc-fd-st:hover, .dosc-app .dosc-fd-st:focus {
	display: flex; flex: none; flex-direction: column; align-items: center; gap: 6px; width: 74px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; color: #000; cursor: pointer;
}
.dosc-fd-stc { position: relative; display: block; width: 66px; height: 66px; padding: 3px; border-radius: 50%; }
.dosc-fd-st.has-story .dosc-fd-stc { background: var(--fd-ring); }
.dosc-fd-st.has-story.is-seen .dosc-fd-stc { background: #d5ccc5; padding: 1.5px; }
.dosc-fd-stc img { display: block; width: 100%; height: 100%; max-width: none; border: 3px solid #fff; border-radius: 50%; object-fit: cover; background: #f4efeb; }
.dosc-fd-st.has-story.is-seen .dosc-fd-stc img { border-width: 4.5px; }
.dosc-fd-st:not(.has-story) .dosc-fd-stc img { border: 1px solid rgba(0, 0, 0, .1); }
.dosc-fd-stplus { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: #654638; border: 2px solid #fff; border-radius: 50%; color: #fff; }
.dosc-fd-stl { display: block; max-width: 100%; overflow: hidden; font: 400 12px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.dosc-fd-st:active .dosc-fd-stc { transform: scale(.95); }
.dosc-app .dosc-fd-tarrow, .dosc-app .dosc-fd-tarrow:hover {
	position: absolute; top: 27px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: 0; padding: 0;
	background: #fff; border: 0; border-radius: 50%; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); color: #000; cursor: pointer;
}
.dosc-fd-tarrow.is-prev { left: 4px; }
.dosc-fd-tarrow.is-next { right: 4px; }

/* ---------- a post ---------- */
.dosc-fd-list { max-width: none; margin: 0; }
.dosc-fd-post { margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--fd-line); transition: opacity .25s ease, transform .25s ease; }
.dosc-fd-post.is-gone { opacity: 0; transform: scale(.97); }
.dosc-fd-ph { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 0 12px; }
.dosc-fd-pav { position: relative; display: block; flex: none; width: 32px; height: 32px; border-radius: 50%; }
.dosc-fd-pav img { display: block; width: 32px; height: 32px; max-width: none; border: 1px solid rgba(0, 0, 0, .08); border-radius: 50%; object-fit: cover; background: #f4efeb; }
.dosc-fd-pav.has-story { width: 38px; height: 38px; margin: -3px; padding: 2px; background: var(--fd-ring); cursor: pointer; }
.dosc-fd-pav.has-story.is-seen { background: #d5ccc5; padding: 1px; }
.dosc-fd-pav.has-story img { width: 34px; height: 34px; border: 2px solid #fff; }
.dosc-fd-pav.has-story.is-seen img { width: 36px; height: 36px; border-width: 2.5px; }
.dosc-fd-pwho { flex: 1; min-width: 0; line-height: 1.25; }
.dosc-fd-pline { display: flex; flex-wrap: wrap; align-items: center; gap: 0 5px; font-size: 14px; }
.dosc-app .dosc-fd-pname { max-width: 100%; overflow: hidden; color: #000; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.dosc-app a.dosc-fd-pname:hover { color: var(--fd-mut); }
.dosc-fd-pline .dosc-vmark { color: #0095f6; }
.dosc-fd-pline .dosc-vmark svg { width: 13px; height: 13px; }
.dosc-fd-dot, .dosc-fd-pline time { color: var(--fd-mut); font-size: 14px; }
.dosc-fd-psub { overflow: hidden; color: #000; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dosc-app .dosc-fd-more, .dosc-app .dosc-fd-more:hover { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 -6px 0 0; padding: 0; background: none; border: 0; box-shadow: none; color: #000; cursor: pointer; }

/* follow buttons in the feed are plain brown words (Instagram's blue words) */
.dosc-app .dosc-fd .dosc-fbtn, .dosc-app .dosc-fd .dosc-fbtn:hover, .dosc-app .dosc-fd .dosc-fbtn:focus,
.dosc-app .dosc-fd .dosc-fbtn.is-following, .dosc-app .dosc-fd .dosc-fbtn.is-following:hover:not([disabled]), .dosc-app .dosc-fd .dosc-fbtn.is-following:focus-visible:not([disabled]) {
	display: inline; width: auto; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0; overflow: visible;
	background: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important; color: #654638 !important;
	font: 600 14px/1.25 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; text-transform: none; transform: none !important; cursor: pointer;
}
.dosc-app .dosc-fd .dosc-fbtn::after { display: none !important; }
.dosc-app .dosc-fd .dosc-fbtn span, .dosc-app .dosc-fd .dosc-fbtn.is-following:hover:not([disabled]) span { color: inherit !important; }
.dosc-app .dosc-fd .dosc-fbtn:hover:not([disabled]) { color: #000 !important; }
.dosc-app .dosc-fd .dosc-fbtn.is-following, .dosc-app .dosc-fd .dosc-fbtn.is-following:hover:not([disabled]) { color: var(--fd-mut) !important; }
.dosc-app .dosc-fd .dosc-fd-sfollow, .dosc-app .dosc-fd .dosc-fd-sfollow:hover { font-size: 12px; }

/* media */
.dosc-fd-media {
	--r: .8; /* width / height of the first photo or video (set per post) */
	position: relative; width: 100%; aspect-ratio: var(--r); margin: 0 auto; overflow: hidden; background: #fff; border: 1px solid #efe9e4; border-radius: 4px; -webkit-user-select: none; user-select: none;
}
/* full width; a tall photo / video is made smaller (same shape) so it always fits on the screen */
.dosc-fd-media { width: min(100%, calc((100vh - 170px) * var(--r))); }
@supports (height: 100svh) { .dosc-fd-media { width: min(100%, calc((100svh - 170px) * var(--r))); } }
.dosc-fd-media.is-sizing { background: #f4efeb; }
.dosc-fd-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.dosc-fd-track::-webkit-scrollbar { display: none; }
.dosc-fd-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.dosc-fd-slide img, .dosc-fd-slide video { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; -webkit-touch-callout: none; } /* never cut */
.dosc-fd-slide.is-video { background: #000; }
.dosc-fd-slide video { cursor: pointer; }
.dosc-app .dosc-fd-arrow, .dosc-app .dosc-fd-arrow:hover {
	position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: -13px 0 0; padding: 0;
	background: rgba(255, 255, 255, .85); border: 0; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); color: #000; cursor: pointer; transition: background-color .15s ease;
}
.dosc-app .dosc-fd-arrow:hover { background: #fff; }
.dosc-fd-arrow.is-prev { left: 10px; }
.dosc-fd-arrow.is-next { right: 10px; }
.dosc-fd-count { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 3px 8px; background: rgba(18, 18, 18, .7); border-radius: 12px; color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.dosc-app .dosc-fd-mute, .dosc-app .dosc-fd-mute:hover { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0; padding: 0; background: rgba(38, 38, 38, .85); border: 0; border-radius: 50%; box-shadow: none; color: #fff; cursor: pointer; }
.dosc-fd-burst { position: absolute; top: 50%; left: 50%; z-index: 3; color: #fff; opacity: 0; transform: translate(-50%, -50%) scale(0); filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35)); pointer-events: none; }
.dosc-fd-burst svg { fill: currentColor; }
.dosc-fd-burst.is-on { animation: dosc-fd-burst .9s cubic-bezier(.2, .85, .25, 1.2) both; }
@keyframes dosc-fd-burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0); } 15% { opacity: .95; transform: translate(-50%, -50%) scale(1.2); } 30% { transform: translate(-50%, -50%) scale(.95); } 45%, 80% { opacity: .95; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(.9); } }
.dosc-fd-textpost { --r: 1; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 36px; background: linear-gradient(150deg, #7a5747 0%, #654638 40%, #24160f 100%); }
.dosc-fd-textpost p { margin: 0; color: #fff; font: 700 clamp(20px, 4.4vw, 28px)/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif; text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.dosc-fd-dots { position: relative; z-index: 1; display: flex; justify-content: center; gap: 4px; height: 0; margin: 0; overflow: visible; pointer-events: none; }
.dosc-fd-dots span { display: block; width: 6px; height: 6px; margin-top: 18px; background: #d5ccc5; border-radius: 50%; transition: background-color .15s ease; }
.dosc-fd-dots span.is-on { background: #654638; }

/* actions */
.dosc-fd-acts { display: flex; align-items: center; gap: 14px; padding: 10px 0 6px; }
.dosc-app .dosc-fd-act, .dosc-app .dosc-fd-act:hover, .dosc-app .dosc-fd-act:focus {
	display: inline-flex; align-items: center; gap: 6px; min-width: 24px; height: 32px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none;
	color: #000; font: 600 14px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; cursor: pointer;
}
.dosc-app .dosc-fd-act:hover .dosc-ico { opacity: .6; }
.dosc-app .dosc-fd-act span:empty { display: none; }
.dosc-app .dosc-fd-like.is-liked { color: #ff3040; }
.dosc-app .dosc-fd-like.is-liked span { color: #000; }
.dosc-app .dosc-fd-like.is-liked .dosc-ico { fill: currentColor; opacity: 1; }
.dosc-app .dosc-fd-like.is-pop .dosc-ico { animation: dosc-fd-pop .4s cubic-bezier(.2, .85, .25, 1.4); }
@keyframes dosc-fd-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.dosc-app .dosc-fd-save, .dosc-app .dosc-fd-save:hover, .dosc-app .dosc-fd-save:focus { margin-left: auto; }
.dosc-app .dosc-fd-save.is-saved .dosc-ico { fill: currentColor; }
.dosc-app .dosc-fd-act.is-reposted { color: #654638; }
.dosc-app .dosc-fd-act.is-reposted .dosc-ico { stroke-width: 2.4; }
.dosc-app .dosc-fd-act.is-reposted span { color: #000; }

.dosc-fd-cap { margin: 2px 0 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.dosc-app .dosc-fd-cname { margin-right: 4px; color: #000; font-weight: 600; text-decoration: none; }
.dosc-fd-ctext { white-space: pre-line; }
.dosc-app .dosc-fd-cmore, .dosc-app .dosc-fd-cmore:hover, .dosc-app .dosc-fd-viewall, .dosc-app .dosc-fd-viewall:hover {
	margin: 0; padding: 0; background: none; border: 0; box-shadow: none; color: var(--fd-mut); font: 400 14px/1.45 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer;
}
.dosc-app .dosc-fd-viewall { display: block; margin: 6px 0 0; }
.dosc-fd-minec { margin: 4px 0 0 !important; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.dosc-fd-minec b { font-weight: 600; }
.dosc-fd-add { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; }
.dosc-app .dosc-fd-add input { flex: 1; min-width: 0; height: 26px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; color: #000; font-size: 14px; outline: 0; }
.dosc-app .dosc-fd-add input::placeholder { color: var(--fd-mut); }
.dosc-app .dosc-fd-add button, .dosc-app .dosc-fd-add button:hover { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; color: #654638; font: 600 14px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; }
.dosc-app .dosc-fd-add button:hover { color: #000; }
.dosc-app a.dosc-fd-addlogin { color: var(--fd-mut); font-size: 14px; text-decoration: none; }
.dosc-app a.dosc-fd-addlogin:hover { color: #000; }

.dosc-fd-loading { display: flex; justify-content: center; padding: 10px 0 24px; }
.dosc-fd-loading .dosc-ig-spin { margin: 0; }
.dosc-fd-sentinel { height: 1px; }
.dosc-fd-retry { margin: 6px 0 20px !important; color: var(--fd-mut); font-size: 14px; text-align: center; }
.dosc-app .dosc-fd-retry button, .dosc-app .dosc-fd-retry button:hover { margin: 0 0 0 4px; padding: 0; background: none; border: 0; box-shadow: none; color: #654638; font: 600 14px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; }
.dosc-fd-end { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: none; margin: 10px auto 0 !important; padding: 24px 0; color: #000; font-size: 15px; font-weight: 600; text-align: center; }
.dosc-fd-end .dosc-ico { width: 54px; height: 54px; color: #654638; stroke-width: 1.2; }
.dosc-fd .dosc-ig-empty { padding-top: 70px; }

/* ---------- right column ---------- */
.dosc-fd-me { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.dosc-fd-meav img { display: block; width: 44px; height: 44px; max-width: none; border: 1px solid rgba(0, 0, 0, .08); border-radius: 50%; object-fit: cover; }
.dosc-fd-mewho { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.dosc-app .dosc-fd-mename { overflow: hidden; color: #000; font-size: 14px; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.dosc-fd-mewho span { overflow: hidden; color: var(--fd-mut); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.dosc-app .dosc-fd-link { flex: none; color: #654638; font-size: 12px; font-weight: 600; text-decoration: none; }
.dosc-app .dosc-fd-link:hover { color: #000; }
.dosc-fd-guest { justify-content: space-between; }
.dosc-fd-guest p { color: var(--fd-mut); font-size: 14px; }
.dosc-fd-sugghead { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.dosc-fd-sugghead b { color: var(--fd-mut); font-size: 14px; font-weight: 600; }
.dosc-app .dosc-fd-sugghead a { color: #000; font-size: 12px; font-weight: 600; text-decoration: none; }
.dosc-app .dosc-fd-sugghead a:hover { color: var(--fd-mut); }
.dosc-fd-sugg li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.dosc-fd-sav img { display: block; width: 44px; height: 44px; max-width: none; border: 1px solid rgba(0, 0, 0, .08); border-radius: 50%; object-fit: cover; background: #f4efeb; }
.dosc-fd-swho { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.dosc-app .dosc-fd-swho a { display: inline-flex; align-items: center; gap: 4px; overflow: hidden; color: #000; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dosc-fd-swho .dosc-vmark { color: #0095f6; }
.dosc-fd-swho span { overflow: hidden; color: var(--fd-mut); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dosc-fd-foot { margin: 28px 0 0; color: var(--fd-light); font-size: 12px; line-height: 1.6; }
.dosc-app .dosc-fd-foot a { color: var(--fd-light); text-decoration: none; }
.dosc-app .dosc-fd-foot a:hover { text-decoration: underline; }
.dosc-fd-copy { margin: 16px 0 0 !important; color: var(--fd-light); font-size: 12px; letter-spacing: .02em; }

/* ---------- sizes ---------- */
@media (max-width: 1259px) {
	.dosc-fd-right { display: none; }
}
@media (max-width: 1100px) {
	.dosc-app.is-feed .dosc-app-top.dosc-fdtop {
		display: flex; align-items: center; gap: 0; height: 52px; padding: 0 4px 0 14px; background: #fff; border-bottom: 1px solid #efe9e4; color: #000; -webkit-backdrop-filter: none; backdrop-filter: none;
	}
	.dosc-app .dosc-fdtop-logo { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; color: #000; text-decoration: none; }
	.dosc-fdtop-logo img { display: block; width: auto; height: 32px; }
	.dosc-fdtop-logo span { font: 400 14px/1 "EB Garamond", Georgia, serif; letter-spacing: .3em; }
	.dosc-fd { padding-top: 12px; }
}
@media (max-width: 640px) {
	.dosc-fd { padding: 0 0 20px; }
	.dosc-fd-tray-wrap { margin: 0 0 6px; border-bottom: 1px solid #efe9e4; }
	.dosc-fd-tray { gap: 12px; padding: 10px 12px 10px; }
	.dosc-fd-tarrow { display: none !important; }
	.dosc-fd-post { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 0; }
	.dosc-fd-ph { padding: 4px 12px 10px; }
	.dosc-fd-media { border: 0; border-radius: 0; width: min(100%, calc((100vh - 110px) * var(--r))); }
	@supports (height: 100svh) { .dosc-fd-media { width: min(100%, calc((100svh - 110px) * var(--r))); } }
	.dosc-fd-arrow { display: none !important; }
	.dosc-fd-acts, .dosc-fd-cap, .dosc-app .dosc-fd-viewall, .dosc-fd-mine, .dosc-fd-add { padding-left: 12px; padding-right: 12px; }
	.dosc-app .dosc-fd-viewall { padding-left: 12px; }
	.dosc-fd-end { padding: 20px 12px; }
}

/* pinned by an admin (Moderation > Pinned) */
.dosc-fd-pinned { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--fd-muted, #8a7a6c); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.dosc-fd-pinned svg { width: 14px; height: 14px; }

/* site name in the top bar of the feed on phones */
.dosc-fdtop-logo span { font: 500 19px/1 "EB Garamond", Georgia, serif; letter-spacing: .04em; }

/* a click on a post opens the post window */
.dosc-fd-media, .dosc-fd-ctext { cursor: pointer; }
