<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_62edca17-7470-4065-92a7-eb722766b3a9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-27</startDate>
            <endDate>2026-10-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_62edca17-7470-4065-92a7-eb722766b3a9"
      id="F_c9d1c246-7a0e-4da7-bebc-38dd6edebb26">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_62edca17-7470-4065-92a7-eb722766b3a9"
      id="F_bc04744e-ebab-44dc-9fa8-6d3bd0c3db4b">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_62edca17-7470-4065-92a7-eb722766b3a9"
      id="F_4e8fcfe7-4fc7-463c-b371-6ac8e86ae1ae">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_62edca17-7470-4065-92a7-eb722766b3a9"
      id="F_9b154ce8-9fd0-4dfa-96cb-03b76db58c68">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_62edca17-7470-4065-92a7-eb722766b3a9"
      id="F_6a4e804b-6854-48bd-8243-2f31eba77afb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_62edca17-7470-4065-92a7-eb722766b3a9"
      id="F_3fa1b77d-dd44-434e-9278-448521041653">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_62edca17-7470-4065-92a7-eb722766b3a9"
      id="F_16e4e1ad-df6e-4e32-bda1-a506501ce4e5">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_62edca17-7470-4065-92a7-eb722766b3a9"
      id="F_7216505d-79f3-4b36-a306-38aeaf4366fb">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_62edca17-7470-4065-92a7-eb722766b3a9"
      id="F_37b93d4c-185b-4552-953a-d1d803ec7cfc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_62edca17-7470-4065-92a7-eb722766b3a9"
      id="F_db84683b-05b6-45bb-999c-c1c4f58e7443">&lt;p style="tab-size:26.66px;font-size:12pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;500,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_62edca17-7470-4065-92a7-eb722766b3a9"
      decimals="-3"
      id="F_6018fbee-fcf4-45f2-93a7-1d9de166f143"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
