<?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_ccc16023-4220-4c2e-93a6-a675fb31b240">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_ccc16023-4220-4c2e-93a6-a675fb31b240"
      id="F_53eeeb4f-3030-4072-a9d0-8ca1e9b4f936">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ccc16023-4220-4c2e-93a6-a675fb31b240"
      id="F_362a6223-617b-45bb-bff9-57efb598b81a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ccc16023-4220-4c2e-93a6-a675fb31b240"
      id="F_b6fcd2e7-44bf-4b43-afc5-e12855c4334f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ccc16023-4220-4c2e-93a6-a675fb31b240"
      id="F_d8163fe2-b10f-4ca6-b0fc-313e8b26e762">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_ccc16023-4220-4c2e-93a6-a675fb31b240"
      id="F_2252cefb-7ebe-4c30-bab7-c2d1e84db03d">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_ccc16023-4220-4c2e-93a6-a675fb31b240"
      id="F_ae589dda-8b29-4fca-b191-3fafa7ce93b0">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ccc16023-4220-4c2e-93a6-a675fb31b240"
      id="F_5cdae035-8534-4e8b-b382-59f145fb70e6">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ccc16023-4220-4c2e-93a6-a675fb31b240"
      id="F_a5a38824-9181-4780-bd0a-86a1ad8db0bb">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_ccc16023-4220-4c2e-93a6-a675fb31b240"
      id="F_3545e556-efdd-4760-a832-3523cd459da4">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ccc16023-4220-4c2e-93a6-a675fb31b240"
      id="F_fd38c4a6-ffc2-4826-a56c-1a38c99bc4e8">&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;975,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_ccc16023-4220-4c2e-93a6-a675fb31b240"
      decimals="0"
      id="F_ce34a8b3-98a8-4439-a673-f59b9a335c05"
      unitRef="U_USD">975000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
