/*
 * soyybean-web components — Dec 2010 Facebook, rebuilt.
 * Class names are ours; the original Facebook class each one recreates is noted in its header
 * so you can grep inspiration/archive/*.css for the source rules.
 * Requires tokens.css.
 */

/* ── Base ─────────────────────────────────────────────────────────────── [body, a, h1–h6] */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--fb-white); scrollbar-gutter: stable; } /* same width with or without a scrollbar, so short and long pages line up */
body {
  margin: 0;
  background: var(--fb-white);
  color: var(--fb-text);
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  text-align: left;
}
a { color: var(--fb-blue); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; color: var(--fb-text); font-size: var(--fs-h); }
h1 { font-size: var(--fs-h1); }
h4, h5 { font-size: var(--fs-base); }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; border: 0; }
button, input, textarea { font-family: var(--font-ui); font-size: var(--fs-base); }

/* 2010 Facebook was built for ~1024px monitors. On bigger screens, zoom the whole page the way
   people zoomed their browsers, so the 980px layout keeps its proportions instead of becoming a
   thin strip. The page always leaves some margin on each side. */
@media (min-width: 1280px) { body { zoom: 1.2; } }
@media (min-width: 1440px) { body { zoom: 1.3; } }
@media (min-width: 1600px) { body { zoom: 1.45; } }
@media (min-width: 1920px) { body { zoom: 1.6; } }
@media (min-width: 2400px) { body { zoom: 1.9; } }

.subtle { color: var(--fb-text-subtle); }               /* [.fcg]  */
.bold { font-weight: bold; }                            /* [.fwb]  */
.sep { color: var(--fb-text-subtle); padding: 0 3px; }  /* the " · " between links */
.icon { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }
/* 2010 pixel icons (images/fb2010/) render at their own size, kept crisp when the page zooms */
img.icon, .byline__frag img.icon { width: auto; height: auto; image-rendering: pixelated; }
.side-nav img.icon, .composer__share img.icon { width: 16px; height: 17px; object-fit: none; } /* narrow icons stay centered */

/* ── Blue bar (logged-in header) ─────────────────────────── [#blueBar, #pageHead, #pageNav] */
.bluebar { background: var(--fb-blue); height: var(--bluebar-h); }
.bluebar__inner {
  width: var(--page-width); max-width: 100%; height: 100%; margin: 0 auto;
  display: flex; align-items: center; gap: 6px; padding: 0 2px;
}
/* "soyybean" drawn like the 2010 logo (scripts/soyybean_logo.py); same height and box as
   [src] #pageLogo, which was 103px wide for "facebook" */
.logo {
  display: block; width: 112px; height: 31px; flex: none; margin-left: -6px;
  background: url(images/logo-soyybean.png) no-repeat; font-size: 0; color: transparent;
}
.logo:hover { background-image: url(images/logo-soyybean-hover.png); }  /* [src] #pageLogo a:hover */
.jewels { display: flex; gap: 0; margin-right: 6px; position: relative; }
.jewel[aria-expanded="true"] { background: #4b67a1; }

/* jewel flyout: the dropdown under a blue-bar icon [.jewelFlyout, .jewelHeader, .jewelFooter] */
.flyout {
  position: absolute; z-index: 60; top: 35px; left: 0; width: 330px;
  background: #fff; border: 1px solid rgba(0, 0, 0, .45); border-top: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}
.flyout[hidden] { display: none; }
.flyout__header { padding: 7px 10px 6px; border-bottom: 1px solid var(--fb-border); font-weight: bold; color: var(--fb-text); }
.flyout__list a { display: flex; gap: 8px; padding: 6px 10px; color: var(--fb-text); border-bottom: 1px solid var(--fb-border-light); }
.flyout__list b { color: var(--fb-blue); }
.flyout__list .is-unread a { background: #eceff5; }
.flyout__list a:hover, .flyout__list a:focus-visible { background: var(--fb-blue-hover); color: #fff; text-decoration: none; outline: 0; }
.flyout__list a:hover b, .flyout__list a:focus-visible b, .flyout__list a:hover .flyout__meta, .flyout__list a:focus-visible .flyout__meta { color: #fff; }
.flyout__pic { width: var(--pic-comment); height: var(--pic-comment); object-fit: cover; flex: none; }
.flyout__meta { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: var(--fb-text-subtle); }
.flyout__footer { padding: 6px 10px; text-align: center; font-weight: bold; color: var(--fb-text-subtle); background: var(--fb-gray-bg); border-top: 1px solid var(--fb-border); }
.jewel { position: relative; width: 28px; height: 30px; display: grid; place-items: center; }
.jewel:hover { background: #4b67a1; }
.jewel__count {
  position: absolute; z-index: 1; top: 1px; right: 1px; min-width: 15px; padding: 1px 3px;
  background: var(--fb-jewel-red); border: 1px solid #dd3822; border-radius: 2px;
  color: #fff; font-size: 9px; font-weight: bold; line-height: 11px; text-align: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}
.search {
  width: 330px; height: 22px; margin-left: 2px; display: flex;
  border: 1px solid #1d2a5b; border-top-color: #0e1f5b; background: #fff;
}
.search input { flex: 1; min-width: 0; border: 0; padding: 3px 4px; outline: 0; color: var(--fb-text); }
.search input::placeholder { color: #999; }
.search button { width: 22px; border: 0; padding: 0; background: #fff; display: grid; place-items: center; }
.pagenav { margin-left: auto; display: flex; }
.pagenav a {
  display: block; height: 30px; padding: 8px 10px 0; color: #fff; font-weight: bold;
  text-decoration: none;
}
.pagenav a:hover { background: var(--fb-blue-nav-hover); }
.pagenav__arrow { display: inline-block; margin-left: 3px; vertical-align: 2px; }

/* ── Page grid ─────────────────────────────────── [#globalContainer, #leftCol, #rightCol] */
.page {
  width: var(--page-width); max-width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: var(--left-col) minmax(0, 1fr) var(--right-col);
  column-gap: var(--gutter); padding-top: var(--gutter); align-items: start;
}
.page--wide { grid-template-columns: var(--left-col) minmax(0, 1fr); }
.col-left { padding: 5px 0 0 2px; word-wrap: break-word; }
.col-main { min-width: 0; }
.col-right { word-wrap: break-word; }

/* ── Buttons ───────────────────────────────── [.uiButton, Confirm, Special, Large, Disabled] */
.button {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: top;
  padding: 2px 6px; margin: 0;
  background: var(--btn-default-bg); background-color: #eee;
  border: 1px solid #999; border-bottom-color: #888; border-radius: 0;
  box-shadow: var(--btn-shadow);
  color: var(--fb-text); font-size: var(--fs-base); font-weight: bold; line-height: 16px;
  white-space: nowrap; cursor: pointer; text-decoration: none;
}
.button:hover { text-decoration: none; }
.button:active { background: #ddd; border-bottom-color: #999; box-shadow: 0 1px 0 rgba(0, 0, 0, .05); }
.button + .button { margin-left: 4px; }
.button--confirm {
  background: var(--btn-confirm-bg); background-color: #5b74a8;
  border-color: #29447e #29447e #1a356e; color: #fff;
}
.button--confirm:active { background: #4f6aa3; border-bottom-color: #29447e; }
.button--special {
  background: var(--btn-special-bg); background-color: var(--fb-green);
  border-color: #3b6e22 #3b6e22 #2c5115; color: #fff;
}
.button--special:active { background: #609946; border-bottom-color: #3b6e22; }
.button--large { font-size: var(--fs-h); padding: 3px 8px; line-height: 18px; }
.button[disabled], .button--disabled {
  background: #f2f2f2; border-color: #c8c8c8; box-shadow: none; color: var(--fb-text-disabled);
  cursor: default;
}
.button--confirm[disabled] { background: #adbad4; border-color: #94a2bf; color: #fff; }
.button .icon { margin: -1px 0 -1px -1px; }

.linkbutton { background: none; border: 0; padding: 0; color: var(--fb-blue); cursor: pointer; }
.linkbutton:hover { text-decoration: underline; }

/* ── Inputs ────────────────────────────────────────────────────── [.inputtext, textarea] */
.input, .textarea {
  width: 100%; padding: 3px; border: 1px solid var(--fb-blue-mute); border-radius: 0;
  background: #fff; color: var(--fb-text); outline: 0;
}
.input:focus, .textarea:focus { border-color: var(--fb-blue-hover); }
.input::placeholder, .textarea::placeholder { color: #777; }
.textarea { resize: none; min-height: 40px; }

/* ── Boxes ─────────────────────────────────────── [.uiBoxGray/Lightblue/Yellow/Red/White] */
.box { padding: 8px 10px; }
.box--gray   { background: var(--fb-gray-bg);  border: 1px solid var(--fb-border); }
.box--blue   { background: var(--fb-blue-bg);  border: 1px solid var(--fb-blue-pale); }
.box--yellow { background: var(--fb-yellow-bg); border: 1px solid var(--fb-yellow-border); }
.box--red    { background: var(--fb-red-bg);   border: 1px solid var(--fb-red-border); }
.box--white  { background: #fff;               border: 1px solid var(--fb-border); }
.box__title { font-weight: bold; margin-bottom: 2px; }

/* ── Section headers ──────────────────────── [.uiHeaderSection / .uiSideHeader, .uiHeader h2] */
.section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  background: var(--fb-gray-bg); border-top: 1px solid #e2e2e2; padding: 4px 5px 5px;
  font-weight: bold; color: var(--fb-text);
}
.section-header a { font-weight: normal; }
.section-header--blue { background: var(--fb-blue-bg); border-top-color: var(--fb-blue-pale); }
.page-title { color: var(--fb-blue-ink); font-size: var(--fs-section); font-weight: bold; }
.page-title--rule { border-bottom: 1px solid var(--fb-border-strong); padding-bottom: .5em; }

/* ── Left column: profile picture + side nav ─────────────────── [#profile_pic, .uiSideNav] */
.profile-pic { width: var(--pic-profile); max-width: 100%; height: auto; margin-bottom: 10px; }
.profile-pic__edit { display: block; margin: -32px 0 22px; padding: 3px 6px; position: relative;
  width: fit-content; margin-left: auto; background: rgba(0,0,0,.6); color: #fff; visibility: hidden; }
.side-nav { margin: 0 0 15px; }
.side-nav a {
  display: flex; align-items: center; gap: 6px; padding: 3px 8px 4px 6px;
  border-bottom: 1px solid #fff; color: var(--fb-text); line-height: 13px;
}
.side-nav a:hover { background: var(--fb-blue-hover-bg); text-decoration: none; }
.side-nav .is-selected a { background: var(--fb-blue-pale); font-weight: bold; }
.side-nav .count { margin-left: -3px; color: var(--fb-text-subtle); font-weight: normal; } /* [src] "Photos (1,099)": one space after the label (the flex gap is 6px) */

/* ── Profile header: name + byline ─────────────────── [.profileHeader, .fbProfileByline] */
.profile-header { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 4px; }
.profile-name { color: var(--fb-blue-ink); font-size: var(--fs-name); font-weight: bold; line-height: 24px; }
.byline { width: var(--main-col); max-width: 100%; margin-top: 4px; line-height: 15px; }
.byline__frag { display: inline-flex; align-items: center; gap: 3px; margin-right: 8px; color: var(--fb-text-byline); white-space: nowrap; }
.byline__frag .icon { width: 12px; height: 12px; fill: #8b9dc3; }
.byline__more { display: block; margin-top: 2px; }

/* ── Photo strip: the five most recent tags ──────────────────────── [.fbProfilePhotoStrip] */
.photo-strip { width: var(--main-col); max-width: 100%; overflow: hidden; margin: 12px 0 15px; }
.photo-strip ul { display: flex; gap: 2px; }
.photo-strip li { flex: 0 0 var(--pic-strip); height: var(--pic-strip); overflow: hidden; background: var(--fb-blue-bg); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }

/* ── Page tabs (2010 Pages/old profiles) ─────────────── [.profile .top_bar ul.tabs li] */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--fb-blue-pale); margin-top: 10px; }
.tabs a {
  display: block; padding: 3px 11px; background: var(--fb-blue-pale); border: 1px solid var(--fb-blue-pale);
  border-bottom: 0; color: var(--fb-blue); font-size: var(--fs-h); font-weight: bold;
}
.tabs a:hover { background: var(--fb-blue-mid); border-color: var(--fb-blue-mid); color: #fff; text-decoration: none; }
.tabs .is-selected a { background: #fff; color: var(--fb-text); padding: 5px 10px 4px; margin: -2px 0 -1px; }

/* ── Profile tabs ───────────────────────────────────────── [one .tab per left-nav page] */
.tab[hidden] { display: none; }

/* Music tab: a 2010 music-app canvas (iLike-style) */
.app-header { display: flex; align-items: center; gap: 6px; padding: 2px 0 9px; }
.app-header--rule { border-bottom: 1px solid var(--fb-border-strong); padding-bottom: .5em; margin-bottom: 4px; } /* .uiHeaderBottomBorder */
.crumb-arrow { margin: 0 6px; color: var(--fb-border-strong); font-size: 11px; vertical-align: 2px; } /* the gray ▸ in "Notes ▸ Name's Notes" */
.release { display: flex; gap: 12px; padding: 10px 0 16px; }
.release__cover { flex: none; }
.release__cover img { width: 160px; height: 160px; border: 1px solid var(--fb-border); }
.release__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.release__title { font-size: var(--fs-section); font-weight: bold; margin-bottom: 2px; }
.release .player { width: 310px; margin-top: 8px; }
.release__actions { margin-top: 10px; }
.section-header .subtle { font-weight: normal; }
.tracklist { margin: 0 0 4px; padding: 0; list-style: none; }
.track { display: grid; grid-template-columns: 18px 50px minmax(0, 1fr) auto; gap: 8px; padding: 9px 0; border-top: 1px solid var(--fb-border-light); }
.track__listen { align-self: center; }
.track:first-child { border-top: 0; }
.track__num { color: var(--fb-text-subtle); text-align: right; padding-top: 1px; }
.track__cover img { width: 50px; height: 50px; }
.track__title { font-weight: bold; }
.track .player { width: 310px; margin-top: 5px; }
.app-footer { padding: 8px 0 14px; border-top: 1px solid var(--fb-border-light); font-size: 10px; }

/* empty states: [src] ArwaKrcyUlH.css (Mar 2011) .fbxNullState{border-top:1px solid #ccc;padding:62px 82px},
   p{font-size:13px;padding-top:7px}, a 32px picture to the left (Coldplay's empty Events tab) */
.null-state { display: flex; gap: 8px; align-items: flex-start; border-top: 1px solid var(--fb-border); padding: 62px 82px; }
.null-state img { flex: none; }
.null-state p { margin: 0; padding-top: 7px; font-size: 13px; color: var(--fb-text); }

/* ── Composer ("What's on your mind?") ──────────────────────────── [.UIComposer, .uiComposer] */
.composer { margin-bottom: 10px; }
.composer__share { display: flex; align-items: center; gap: 12px; margin-bottom: 5px; }
.composer__share b { color: var(--fb-text); }
.composer__share a { display: inline-flex; align-items: center; gap: 4px; }
.composer__box { border: 1px solid var(--fb-blue-mute); background: #fff; padding: 4px 5px; }
.composer__box textarea { border: 0; width: 100%; height: 21px; font-size: var(--fs-h); resize: none; outline: 0; color: var(--fb-text); }
.composer__box textarea::placeholder { color: #777; }
.composer__actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 5px; }

/* ── Wall stream ───────────────────────── [.uiStreamStory, .UIImageBlock, .uiStreamMessage] */
.stream { border-top: 1px solid var(--fb-border-light); }
.story {
  display: flex; gap: 10px; padding: 10px 35px 10px 0; border-bottom: 1px solid var(--fb-border-light);
  position: relative;
}
.story__pic { width: var(--pic-story); height: var(--pic-story); flex: none; object-fit: cover; }
.story__body { flex: 1; min-width: 0; }
.story__message { line-height: 14px; word-wrap: break-word; }
.story__actor { font-weight: bold; }
.story__message .passive { color: var(--fb-text); }
.story__hide { position: absolute; top: 10px; right: 0; color: #c0c0c0; visibility: hidden; font-size: 13px; }
.story:hover .story__hide { visibility: visible; }
.story__footer { margin-top: 5px; color: var(--fb-text-subtle); }
.story__footer .icon { width: 14px; height: 14px; margin-right: 4px; fill: #8b9dc3; vertical-align: -3px; }
.story__footer abbr { text-decoration: none; border-bottom: 1px dotted var(--fb-text-subtle); color: var(--fb-text-subtle); cursor: help; }
.story--ministory { padding-top: 6px; padding-bottom: 6px; }
.story--ministory .story__pic { width: 16px; height: 16px; }

/* attachments [.uiStreamAttachments, .uiAttachmentTitle/Desc] */
.attachment { display: flex; gap: 10px; margin-top: 7px; }
.attachment__media { flex: none; max-width: 130px; }
.attachment__media img { max-width: 130px; max-height: 130px; }
.attachment__title { font-weight: bold; }
.attachment__caption { color: var(--fb-text-subtle); margin-top: 1px; }
.attachment__desc { color: var(--fb-text-subtle); margin-top: 3px; line-height: 14px; }
.attachment--quote { border-left: 2px solid var(--fb-border); padding-left: 8px; }
.attachment--photo img { width: 240px; max-width: 100%; height: auto; padding: 3px; border: 1px solid var(--fb-border); background: #fff; }

/* inline mp3 player — the 2010 "music attachment" */
.player {
  display: flex; align-items: center; gap: 6px; margin-top: 6px; width: 290px; max-width: 100%;
  padding: 3px; border: 1px solid var(--fb-blue-pale); background: var(--fb-blue-bg);
}
.player__play {
  width: 20px; height: 18px; border: 1px solid #29447e; background: var(--btn-confirm-bg);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.player__play svg { width: 8px; height: 8px; fill: #fff; }
.player__track { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__bar {
  height: 6px; background: #fff; border: 1px solid var(--fb-blue-mute); margin-top: 2px;
  cursor: pointer; touch-action: none;
}
.player__bar:focus-visible { outline: 1px dotted var(--fb-blue); outline-offset: 1px; }
.player__bar span { display: block; height: 100%; background: var(--fb-blue-hover); }
.player__time { color: var(--fb-text-subtle); font-size: 10px; }

/* ── Comments & likes ──────────────────────────────────────────── [.uiUfi, .ufiItem] */
.ufi { margin-top: 5px; width: 100%; }
.ufi::before { /* the little nub pointing up at "Comment" */
  content: ""; display: block; width: 0; height: 0; margin-left: 17px;
  border: 5px solid transparent; border-bottom-color: var(--fb-blue-bg); border-top: 0;
}
.ufi__item {
  display: flex; gap: 7px; align-items: flex-start;
  background: var(--fb-blue-bg); border-bottom: 1px solid var(--fb-blue-wash); padding: 5px 5px 4px;
}
.ufi__item .icon { width: 14px; height: 14px; fill: #5872a7; }
.ufi__pic { width: var(--pic-comment); height: var(--pic-comment); flex: none; object-fit: cover; }
.ufi__comment { flex: 1; line-height: 14px; }
.ufi__meta { color: var(--fb-text-subtle); margin-top: 2px; }
.ufi__add .input { height: 22px; }

/* ── Info table ─────────────────────────────────────── [.uiInfoTable, .profileInfoTable] */
.info-section + .info-section { margin-top: 15px; }
.info-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.info-table th {
  width: 100px; padding: 2px 10px 6px 5px; vertical-align: top; text-align: left;
  color: var(--fb-text-byline); font-weight: bold;
}
.info-table td { padding: 2px 5px 6px 0; vertical-align: top; }
.info-table tr.is-highlight td, .info-table tr.is-highlight th { background: var(--fb-highlight); }
/* the profile Info tab's variant: [src] .profileInfoTable th.label{color:#999;width:90px}, labels with no
   colon, .uiInfoTable .label/.data{padding:3px 0 1px} and line-height 15px, .mtm above the table, sections
   30px apart. Ours is wider so "Relationship Status" fits on one line in our font. */
.info-table--profile { table-layout: fixed; margin-top: 10px; }
.info-table--profile th { width: 125px; color: #999; white-space: nowrap; padding: 3px 10px 1px 5px; line-height: 15px; }
.info-table--profile td { padding: 3px 0 1px; line-height: 15px; }
.info-table__links div + div { margin-top: 2px; }
.info-table__links a { overflow-wrap: anywhere; } /* long URLs wrap on phones */
.tab .info-section + .info-section { margin-top: 30px; }
.col-main--no-strip .byline { margin-bottom: 12px; } /* a profile with no photo strip: room before whatever comes next */
/* liked Pages as pictures: [src] .mediaRow .mediaPortrait (75px picture, name under it, two lines max) */
.media-row { display: flex; flex-wrap: wrap; gap: 6px 5px; margin: 0; padding: 0; list-style: none; }
.media-row a { display: block; width: 75px; line-height: 14px; text-align: center; } /* .mediaRowWrapper{text-align:center} */
.media-row img { width: 75px; height: 75px; object-fit: cover; margin-bottom: 5px; }
.media-row span { display: block; height: 28px; overflow: hidden; overflow-wrap: break-word; } /* .mediaPageName */
.info-table tr.spacer td { padding: 5px 0; } /* [src] .profileInfoTable tr.spacer hr: a #e9e9e9 rule between groups */
.info-table tr.spacer hr { height: 1px; margin: 0; border: 0; background: var(--fb-border-light); }

/* ── Friends grid (left column box) ───────────────────────── [.profile-friends] */
/* Friends, the 2010 row: [src] TIME's left column and TechCrunch's Apr 2009 friends list. A 50px
   picture, then the name in bold blue (theirs had a gray network or workplace line under it, which
   we don't have) */
.friend-box__title { display: block; padding: 4px 5px 6px; font-weight: bold; font-size: 13px; }
.friend-box { margin: 0 0 12px; padding: 0 5px; list-style: none; }
.friend-mini, .friend-row { display: flex; gap: 10px; align-items: flex-start; }
.friend-mini { margin-bottom: 8px; }
.friend-mini__pic img, .friend-row__pic img { display: block; width: 50px; height: 50px; object-fit: cover; }
.friend-mini__pic, .friend-row__pic { flex: none; }
.friend-mini__info, .friend-row__info { min-width: 0; padding-top: 2px; }
.friend-mini__name, .friend-row__name { font-weight: bold; }
.friend-row__name { font-size: 13px; line-height: 15px; }

/* Friends tab: header with Search Friends, then the rows */
.friends-header { align-items: center; }
.friends-search { width: 160px; height: 20px; padding: 2px 4px; font-weight: normal; }
.friend-list { margin: 0; padding: 0; list-style: none; }
.friend-row { padding: 8px 5px; border-bottom: 1px solid var(--fb-border-light); }
.friend-row[hidden] { display: none; }
.friend-list__empty { padding: 12px 0; text-align: center; }

/* Photos tab: [src] .uiMediaThumb (white frame, 1px #ccc, 4px padding, blue on hover; the photo
   is a background cropped from the top quarter) at the Large size, 149x116: three framed Large
   thumbs are 497px, which fits our 527px column (three Huge ones would not) */
.media-thumb { position: relative; display: inline-block; padding: 4px; background: #fff; border: 1px solid var(--fb-border); vertical-align: bottom; }
.media-thumb:hover, .media-thumb:focus-visible, .media-thumb:hover .media-thumb__wrap { border-color: var(--fb-blue); outline: 0; }
.media-thumb i { display: block; background: #eee center 25% / cover no-repeat; }
.media-thumb--large i { width: 149px; height: 116px; }
/* album covers: [src] .uiMediaThumbAlb{margin:0 4px 4px 0}, .uiMediaThumbAlbLarge i 144x111, and
   .uiMediaThumbWrap{position:absolute;left:4px;top:4px;padding:4px;background:#fff;border:1px solid #ccc} */
.media-thumb--alb { margin: 0 4px 4px 0; }
.media-thumb--alb > i { width: 144px; height: 111px; visibility: hidden; }
.media-thumb__wrap { position: absolute; left: 4px; top: 4px; padding: 4px; background: #fff; border: 1px solid var(--fb-border); }
.media-thumb__wrap i { width: 144px; height: 111px; }
/* the grid: [src] .fbPhotosGridTight (8px between columns), .photoDetails padding-top 2px, 13px lines */
.albums { display: grid; grid-template-columns: repeat(auto-fill, 159px); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.album { width: 159px; line-height: 13px; overflow-wrap: anywhere; }
.album__title { display: block; margin-top: 2px; font-weight: bold; }
.album__caption { margin-top: 3px; }
.album-page__back { font-weight: normal; }
.album-page__count { margin-top: 6px; }

/* the Feb 2011 photo theater: [src] Facebook Engineering, "Developing Facebook's New Photo Viewer"
   (Feb 10 2011): the photo on a black stage with small arrow buttons at its sides, then a white strip
   with the album name, "By", "32 of 32", the caption and date, and a × in its corner */
.theater { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .8); }
.theater[hidden] { display: none; }
.theater__stage { width: min(960px, 100%); background: #000; box-shadow: 0 2px 26px rgba(0, 0, 0, .5); }
.theater__photo { position: relative; display: flex; justify-content: center; padding: 30px 40px; }
.theater__img { display: block; max-width: 100%; max-height: calc(100vh - 220px); cursor: pointer; }
.theater__arrow { position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; padding: 0; border: 0; background: #333; color: #ccc; font-size: 8px; line-height: 18px; cursor: pointer; }
.theater__arrow:hover { background: #555; color: #fff; }
.theater__arrow[hidden] { display: none; }
.theater__arrow--prev { left: 10px; }
.theater__arrow--next { right: 10px; }
.theater__info { position: relative; display: flex; gap: 20px; padding: 10px 30px 12px 10px; background: #fff; line-height: 15px; }
.theater__meta { flex: none; width: 160px; }
.theater__album { font-weight: bold; }
.theater__text { min-width: 0; }
.theater__close { position: absolute; top: 4px; right: 6px; padding: 0 4px; border: 0; background: none; color: #999; font-size: 16px; line-height: 16px; cursor: pointer; }
.theater__close:hover { color: var(--fb-text); }

/* Notes tab: [src] 2011 notes.php / note.php captures (bold ~14px titles, "By Name" date line, the
   excerpt ending in "...", "View Full Note"; the note body was .notesBlogText at 13px) */
.note-list { margin: 0; padding: 0; list-style: none; }
.note-entry { padding: 5px 0 10px; border-bottom: 1px solid var(--fb-border-light); }
.note-entry:last-child { border-bottom: 0; }
.note-entry__title { display: inline-block; margin: 5px 0; font-size: 13px; font-weight: bold; } /* .mvs .fsl .fwb */
.note-entry__excerpt { margin: 8px 0; line-height: 1.5em; }
.note-list__results { margin-top: 10px; padding-top: 5px; border-top: 1px solid var(--fb-border); } /* .uiPagerTopBorder */
/* note page: [src] 6qv2R1VGvz4.css (Apr 2011) .notesBlogText{font-size:11px;line-height:1.5em},
   ol{padding:0 10px 0 25px}; the title is a 16px #1c2a47 .uiHeader with a 1px #aaa bottom rule */
.note__head { border-bottom: 1px solid var(--fb-border-strong); padding: 6px 0 .5em; margin-bottom: 10px; }
.note__title { margin: 0 0 5px; font-size: var(--fs-section); line-height: 20px; color: var(--fb-blue-ink); }
.note__body { font-size: 11px; line-height: 1.5em; max-width: 470px; }
.note__body p { margin: 0 0 1.5em; }
.note__things { margin: 0; padding: 0 10px 0 25px; }
.note__blank::after { content: ""; display: inline-block; width: 300px; max-width: 80%; height: 11px; border-bottom: 1px solid var(--fb-border); vertical-align: middle; } /* a fill-in line */
.note__tagged { margin: 10px 0; }
.notes__empty { margin: 0; padding: 14px 5px 18px; }


/* ── Right column ads ("Sponsored") ──────────────────────── [.ego_unit, .fbEmu] */
.ego { padding: 8px 5px 10px; border-bottom: 1px solid var(--fb-border-light); }
.ego__title { font-weight: bold; display: block; margin-bottom: 2px; }
.ego__url { color: var(--fb-text-subtle); display: block; margin-bottom: 4px; }
.ego__body { display: flex; gap: 6px; }
.ego__body img { width: 110px; height: 80px; object-fit: cover; flex: none; }
.ego__actions { margin-top: 4px; display: flex; align-items: center; gap: 3px; }
.ego__actions .icon { width: 12px; height: 12px; fill: var(--fb-blue); }

/* ── Dialog ──────────────────────────── [.pop_container_advanced, h2.dialog_title, ...] */
.dialog { width: 465px; max-width: 100%; padding: 10px; background: var(--dialog-frame); border-radius: var(--radius-dialog); }
.dialog__title {
  background: var(--fb-blue-hover); border: 1px solid var(--fb-blue); border-bottom: 0;
  color: #fff; font-size: var(--fs-h1); font-weight: bold; padding: 4px 10px 5px;
}
.dialog__content { background: #fff; border: 1px solid #555; border-top: 0; }
.dialog__body { padding: 10px; border-bottom: 1px solid var(--fb-border); }
.dialog__buttons { background: var(--fb-gray-bg); padding: 8px 10px; text-align: right; }
.dialog__buttons .msg { float: left; line-height: 17px; padding-top: 4px; color: var(--fb-text-subtle); }
.dialog__buttons .button[hidden] { display: none; }
.dialog__entity { display: flex; gap: 10px; align-items: flex-start; }
.dialog__entity img { width: var(--pic-story); height: var(--pic-story); object-fit: cover; flex: none; }

/* [.generic_dialog] fixed layer; the 465px popup sits ~125px down. 2010 did not dim the page:
   the translucent gray frame was the only "overlay". */
.dialog-layer {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  display: flex; justify-content: center; align-items: flex-start; padding: 125px 16px 0;
}
.dialog-layer[hidden] { display: none; }
.dialog-layer .dialog { pointer-events: auto; }

/* [.async_saving] the little three-bar loading gif, as CSS */
.throbber { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; margin-right: 8px; vertical-align: middle; }
.throbber[hidden] { display: none; }
/* streaming-service picker inside the dialog: a 2010 uiList */
.listen__lede { margin: 0 0 6px; }
.listen { border-bottom: 1px solid var(--fb-border-light); }
.listen li { border-top: 1px solid var(--fb-border-light); }
.listen a { display: block; padding: 6px 4px; font-weight: bold; }
.listen a:hover { background: var(--fb-blue-hover-bg); text-decoration: none; }
.throbber i { width: 4px; height: 11px; background: #8b9dc3; animation: throb .6s infinite steps(1); }
.throbber i:nth-child(2) { animation-delay: .2s; }
.throbber i:nth-child(3) { animation-delay: .4s; }
@keyframes throb { 0% { background: #3b5998; } 33% { background: #8b9dc3; } }

/* ── Chat dock ─────────────────────────────────────────── [.fbDock, .fbChatBuddyList] */
.chat-dock {
  position: fixed; right: 15px; bottom: 0; z-index: 10; width: 200px;
  display: flex; align-items: center; gap: 6px; padding: 5px 8px 6px;
  background: linear-gradient(#f9f9f9, #e7e7e7); border: 1px solid #999; border-bottom: 0;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .05); font-weight: bold; color: var(--fb-text); cursor: pointer;
}
.chat-dock__dot { width: 8px; height: 8px; border-radius: 50%; background: #c0c0c0; }
.chat-dock__dot.is-online { background: #4fbb2f; }

/* ── Tooltip ───────────────────────────────────────────── [.uiTooltipText] */
.tooltip { display: inline-block; position: relative; padding: 3px 8px 4px; background: #282828; color: #fff; font-size: 11px; }
.tooltip::after { content: ""; position: absolute; left: 50%; bottom: -4px; margin-left: -4px;
  border: 4px solid transparent; border-top-color: #282828; border-bottom: 0; }

/* ── Footer ────────────────────────────────────────── [#pageFooter, #contentCurve] */
.page-footer {
  width: var(--page-width); max-width: 100%; margin: 20px auto 40px; padding: 8px 2px;
  border-top: 1px solid var(--fb-border-curve);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  color: var(--fb-text-footer);
}
.page-footer nav a + a::before { content: " · "; color: var(--fb-text-subtle); }

/* ── Phone width: stack the columns (2010 had m.facebook.com; we just stack) ──────────── */
@media (max-width: 760px) {
  .bluebar__inner { padding: 0 8px; }
  .flyout { position: fixed; top: var(--bluebar-h); left: 8px !important; right: 8px; width: auto; } /* full width, overrides the JS offset */
  .search, .pagenav a:not(:first-child) { display: none; }
  .page, .page--wide { grid-template-columns: minmax(0, 1fr); padding: 15px 16px 0; row-gap: 15px; }
  .col-left { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 0; }
  .col-left > :not(.profile-pic):not(.side-nav) { display: none; } /* friends/pages: desktop only */
  .profile-pic { width: 100px; }
  .profile-header { flex-direction: column; gap: 8px; }
  .photo-strip ul { gap: 2px; }
  .photo-strip li { flex: 1 1 0; height: auto; aspect-ratio: 1; }
  .story { padding-right: 0; }
  .story__pic { width: 40px; height: 40px; }
  .attachment { flex-direction: column; }
  .release { flex-direction: column; }
  .null-state { padding: 30px 10px; }
  .page-footer { padding: 8px 16px; }
}
