<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_9e0246e1-1d29-439b-b501-19a668ead464">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-23</startDate>
            <endDate>2026-03-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_9e0246e1-1d29-439b-b501-19a668ead464"
      id="F_a43d7644-643c-472c-a285-0561bec5bfdc">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_9e0246e1-1d29-439b-b501-19a668ead464"
      id="F_35933cbc-2c72-4936-a2a9-0e8543fa265a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_9e0246e1-1d29-439b-b501-19a668ead464"
      id="F_613529cb-fd6c-4d81-b474-185ca327fe7a">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_9e0246e1-1d29-439b-b501-19a668ead464"
      id="F_fd571e82-a901-433b-a019-5d30e7ab9279">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_9e0246e1-1d29-439b-b501-19a668ead464"
      id="F_dac7623c-4812-4386-9882-eb741431a52a">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_9e0246e1-1d29-439b-b501-19a668ead464"
      id="F_e2fadaf3-d9d4-47db-85c5-ae417a2c1b4d">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_9e0246e1-1d29-439b-b501-19a668ead464"
      id="F_3e5a4da6-1a83-4ecf-a59b-541d75d53182">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9e0246e1-1d29-439b-b501-19a668ead464"
      id="F_0ba0db3f-b663-412f-bbcf-4b78a4a00926">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9e0246e1-1d29-439b-b501-19a668ead464"
      id="F_afe4f584-8513-40d8-8acd-81f4f87433ce">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9e0246e1-1d29-439b-b501-19a668ead464"
      id="F_51d35280-90a6-4561-b681-622461627fad">&lt;p style="font-size:10pt;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;2,097,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_9e0246e1-1d29-439b-b501-19a668ead464"
      decimals="0"
      id="F_c0047fe8-9b8a-4159-8f5a-c637c0d16894"
      unitRef="U_USD">2097000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
