/* Y Recombinator — in the spirit of news.ycombinator.com, written from scratch. */
html { background: #fff; }
body { margin: 8px 0; font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: #828282; background: #fff; }
td { font-family: Verdana, Geneva, sans-serif; font-size: 10pt; color: #828282; }
a:link { color: #000; text-decoration: none; }
a:visited { color: #828282; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #ff6600; outline-offset: 1px; }

#hnmain { width: 85%; min-width: 796px; margin: 0 auto; background: #f6f6ef; border-collapse: collapse; }
#hnmain > tbody > tr > td { padding: 0; }

/* header */
.topbar { background: #ff6600; }
.topbar table { width: 100%; border-collapse: collapse; }
.topbar td { padding: 2px; }
.topbar td.logo { width: 18px; padding: 2px 4px 2px 2px; }
.topbar td.logo img { display: block; border: 1px solid #fff; width: 18px; height: 18px; }
.navflex { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.navright { white-space: nowrap; padding-right: 4px; }
.pagetop { font-size: 10pt; color: #222; line-height: 12px; }
.pagetop a:link, .pagetop a:visited { color: #000; }
.pagetop a.topsel:link, .pagetop a.topsel:visited { color: #fff; }
.hnname { margin-right: 5px; }
#hnmain td.subnav { padding: 6px 10px 0 10px; }
.subnav { font-size: 8pt; color: #828282; line-height: 1.6; }
.subnav a:link, .subnav a:visited { color: #828282; }
.subnav a.sel:link, .subnav a.sel:visited { color: #000; font-weight: bold; }
.subnav a:hover { text-decoration: underline; }
#hnmain td.tagline { padding: 8px 10px 0; }
.tagline { font-size: 9pt; color: #666; }
.tagline a:link, .tagline a:visited { color: #666; text-decoration: underline; }
#pagespace { height: 10px; }

/* item list */
.itemlist { border-collapse: collapse; }
.itemlist td { padding: 0; }
.title { font-size: 10pt; color: #828282; overflow: hidden; vertical-align: top; }
td.rank-cell { text-align: right; vertical-align: top; padding-left: 4px !important; }
.rank { color: #828282; }
.titleline { overflow-wrap: anywhere; }
.titleline a { word-break: break-word; }
.sitebit { font-size: 8pt; color: #828282; }
.sitebit a:link, .sitebit a:visited { color: #828282; }
.sitebit a:hover { text-decoration: underline; }
.subtext { font-size: 7pt; color: #828282; }
.subtext a:link, .subtext a:visited, .subtext button { color: #828282; }
.subtext a:hover, .subtext button:hover { text-decoration: underline; }
.hl { color: #ff6600; }
.folded { display: inline-block; margin-top: 3px; }
.subtext .folded a:link, .subtext .folded a:visited { color: #5a5a5a; }
tr.spacer { height: 5px; }
tr.morespace { height: 10px; }
.morelink:link, .morelink:visited { color: #000; }
.votelinks { vertical-align: top; width: 14px; text-align: center; }
.vote { display: block; width: 14px; height: 14px; margin: 1px 0 0; }
.votearrow { display: block; width: 10px; height: 10px; margin: 2px 2px 2px; background: url("/img/triangle.svg") no-repeat; background-size: 10px; }
.vote[aria-pressed="true"] .votearrow { background-image: url("/img/triangle-on.svg"); }
tr.athing.kbd td, tr.athing.kbd + tr td { background: #ece9dc; }
#hnmain td.pastnav { padding: 0 0 10px 0; font-size: 8pt; color: #828282; line-height: 1.6; }
.pastnav b { color: #000; font-weight: normal; font-size: 10pt; }
.pastnav a:link, .pastnav a:visited { color: #000; text-decoration: underline; }
.empty { padding: 10px 0 10px 4px; font-size: 9pt; }
.hidden-row { display: none; }

/* item page */
.fatitem { border-collapse: collapse; }
.fatitem td { padding: 0; }
.toptext { font-size: 9pt; color: #000; padding-top: 8px !important; max-width: 70em; }
.toptext p, .commtext p { margin: 8px 0 0; }
.toptext p:first-child, .commtext p:first-child { margin-top: 0; }
.comhead { font-size: 8pt; color: #828282; }
.comhead a:link, .comhead a:visited { color: #828282; }
.comhead a:hover { text-decoration: underline; }
.comhead a.hnuser:link, .comhead a.hnuser:visited { color: #828282; }
.toptext .comhead a:link, .toptext .comhead a:visited { text-decoration: none; color: #828282; }
.comment { font-size: 9pt; color: #000; max-width: 70em; }
.commtext { color: #000; overflow-wrap: anywhere; }
.commtext a:link, .commtext a:visited, .toptext a:link, .toptext a:visited { text-decoration: underline; }
.commtext a:visited, .toptext a:visited { color: #828282; }
pre { overflow: auto; padding: 2px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 9pt; }
.comment-tree { border-collapse: collapse; margin-top: 4px; }
.comment-tree td { padding: 0; }
.comtr > td { padding-bottom: 15px !important; }
.comtr .default { padding-left: 4px; }
.comtr .comhead { display: block; margin: 2px 0 6px; }
.sectionhead { font-size: 9pt; color: #828282; }
.comment-tree td.sectionhead, .itemlist td.sectionhead { padding: 14px 0 8px 4px; }
div.sectionhead { padding: 14px 0 8px 4px; }
.sectionhead b { color: #000; font-weight: normal; }
.quote { color: #5a5a5a; }
.compact { font-size: 8pt; line-height: 1.6; }
.compact a:link, .compact a:visited { color: #828282; }
.compact a:hover { text-decoration: underline; }
.related td.title { font-size: 9pt; }

/* plain pages */
.page { padding: 4px 10px 10px; color: #000; font-size: 9pt; line-height: 1.45; max-width: 52em; }
.page h1 { font-size: 10pt; margin: 0 0 8px; }
.page h2 { font-size: 9pt; margin: 18px 0 6px; }
.page p, .page li { margin: 6px 0; }
.page a:link, .page a:visited { text-decoration: underline; }
.page a:visited { color: #828282; }
.page code, .page kbd { font-family: monospace; font-size: 9pt; }
.page kbd { border: 1px solid #c8c8c0; border-bottom-width: 2px; padding: 0 4px; background: #fff; border-radius: 2px; }
.page table.keys td { color: #000; font-size: 9pt; padding: 2px 14px 2px 0; }
.topicgrid { border-collapse: collapse; }
.topicgrid td { vertical-align: top; padding: 0 28px 14px 0; color: #000; font-size: 9pt; }
.topicgrid .sec { font-weight: bold; margin-bottom: 4px; display: block; }
.topicgrid a:link, .topicgrid a:visited { text-decoration: none; color: #000; }
.topicgrid a:hover { text-decoration: underline; }
.topicgrid .cnt { color: #828282; font-size: 8pt; }
.picks a { margin-right: 10px; }
.picks a.on:link, .picks a.on:visited { color: #ff6600; font-weight: bold; }
.note { color: #828282; font-size: 8pt; }

/* footer */
.footbar { height: 2px; background: #ff6600; margin-top: 10px; }
.yclinks { font-size: 8pt; color: #828282; }
.yclinks a:link, .yclinks a:visited { color: #000; }
.yclinks a:hover { text-decoration: underline; }
.footer { text-align: center; padding: 12px 8px 20px; }
.footer form { margin-top: 12px; font-size: 10pt; }
.footer input { font-family: monospace; font-size: 10pt; }
.fine { font-size: 7pt; color: #828282; margin-top: 12px; }

/* keyboard help */
#kbdhelp { position: fixed; inset: 0; background: rgba(0,0,0,.25); display: none; align-items: center; justify-content: center; z-index: 10; }
#kbdhelp.open { display: flex; }
#kbdhelp > div { background: #f6f6ef; border-top: 3px solid #ff6600; padding: 12px 18px; color: #000; font-size: 9pt; max-width: 90vw; }
#kbdhelp table td { padding: 2px 12px 2px 0; font-size: 9pt; color: #000; }
#kbdhelp kbd { font-family: monospace; border: 1px solid #c8c8c0; border-bottom-width: 2px; padding: 0 4px; background: #fff; border-radius: 2px; }


@media only screen and (max-width: 750px) {
  body { margin: 0; -webkit-text-size-adjust: none; }
  #hnmain { width: 100%; min-width: 0; }
  /* two-line header: name + for you/topics, then one swipeable row of sections */
  .navflex { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 8px; }
  .navflex span.navmain { display: contents; }
  .navflex .hnname { grid-column: 1; grid-row: 1; margin: 3px 5px 0; font-size: 15px; }
  .navflex span.navright { grid-column: 2; grid-row: 1; display: block; margin: 3px 6px 0 0; }
  .navflex .sections { grid-column: 1 / -1; grid-row: 2; display: block; margin: 2px 0 3px 5px; font-size: 13px;
                       white-space: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .navflex .sections::-webkit-scrollbar { display: none; }
  span.pagetop { display: block; margin: 3px 5px; font-size: 12px; line-height: 1.5; }
  span.pagetop b { display: block; font-size: 15px; }
  .title, .comment, .toptext { font-size: inherit; }
  .titleline { font-size: 15px; }
  .rank { font-size: 14px; }
  .subtext { font-size: 9pt; }
  .comhead { font-size: 9pt; }
  .vote { width: 24px; height: 17px; position: relative; }
  .vote::after { content: ""; position: absolute; inset: -6px 0; }  /* bigger tap target, same row height */
  .votearrow { margin: 4px 7px 3px; }
  tr.spacer { height: 10px; }
  .subnav, #hnmain td.pastnav { font-size: 9pt; }
  .page { font-size: 10pt; }
}
.js-only { display: none; }
html.js .js-only { display: inline; }
.ulink { text-decoration: underline; color: #828282; }
.picks summary { cursor: pointer; color: #828282; font-size: 9pt; }
.picks p { margin: 6px 0; line-height: 1.7; }
.picks button { color: #000; margin-right: 6px; }
.picks button:hover { text-decoration: underline; }
.picks button.on { color: #ff6600; font-weight: bold; }
