<?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_9062dcf8-9c15-4847-8aae-77e50409f93d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-22</startDate>
            <endDate>2026-10-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_9062dcf8-9c15-4847-8aae-77e50409f93d"
      id="F_b7e6cff4-23c5-42e6-b9bd-1e13c29b1922">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9062dcf8-9c15-4847-8aae-77e50409f93d"
      id="F_bf31684f-5d87-4f6e-a6cd-fdebb2285642">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9062dcf8-9c15-4847-8aae-77e50409f93d"
      id="F_edd98c56-c4b3-4d94-85d7-b2f1ecbfcc0a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_9062dcf8-9c15-4847-8aae-77e50409f93d"
      id="F_40cd2f9d-578c-4eb0-a42d-b015ff654e9f">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_9062dcf8-9c15-4847-8aae-77e50409f93d"
      id="F_39d9bdba-057f-46ea-88d6-b2a9392b9fa8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_9062dcf8-9c15-4847-8aae-77e50409f93d"
      id="F_2c1652a9-36f7-4dc6-9631-4711b7b58087">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_9062dcf8-9c15-4847-8aae-77e50409f93d"
      id="F_fb0c940e-c1cc-4933-8b65-ad6d19233ff4">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_9062dcf8-9c15-4847-8aae-77e50409f93d"
      id="F_e1cf1095-eb4d-4ece-9f70-15d50dc14019">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_9062dcf8-9c15-4847-8aae-77e50409f93d"
      id="F_055e50f9-84b4-4293-a0ab-99f1879fbc87">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9062dcf8-9c15-4847-8aae-77e50409f93d"
      id="F_c8cf138d-2cef-42a6-bc7b-fb72c1b6266d">&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;6,000,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_9062dcf8-9c15-4847-8aae-77e50409f93d"
      decimals="-6"
      id="F_a6d96dd1-f216-4af9-9e06-2f8b7545c4dc"
      unitRef="U_USD">6000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
