<?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_1d00cd5b-d386-4ed6-8385-04a3001b7c00">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_1d00cd5b-d386-4ed6-8385-04a3001b7c00"
      id="F_1694f03e-78b8-436b-8d89-01de8af610a5">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_1d00cd5b-d386-4ed6-8385-04a3001b7c00"
      id="F_f385fa6b-6bbf-41dc-9954-10c05349bde3">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_1d00cd5b-d386-4ed6-8385-04a3001b7c00"
      id="F_43daddfa-e579-448e-98d9-7b3e624370f0">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_1d00cd5b-d386-4ed6-8385-04a3001b7c00"
      id="F_f01977d2-93e9-4b79-b450-64da6f0429e2">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1d00cd5b-d386-4ed6-8385-04a3001b7c00"
      id="F_9c1536c9-773c-4a50-b842-be33f0ac6cdf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1d00cd5b-d386-4ed6-8385-04a3001b7c00"
      id="F_af84b7d5-0278-4ede-a412-0094f3d05582">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_1d00cd5b-d386-4ed6-8385-04a3001b7c00"
      id="F_2740ac49-2d69-4901-b2ed-5a69201e0c8a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_1d00cd5b-d386-4ed6-8385-04a3001b7c00"
      id="F_05e0dba6-9973-4ae7-a599-cdae9a0e0a81">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_1d00cd5b-d386-4ed6-8385-04a3001b7c00"
      id="F_c4072242-4a68-49cd-8dc4-4ff695a850d0">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1d00cd5b-d386-4ed6-8385-04a3001b7c00"
      id="F_7e70018a-a0f8-45b8-b447-521516290bff">&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;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_1d00cd5b-d386-4ed6-8385-04a3001b7c00"
      decimals="-6"
      id="F_6ee55aaf-7988-4b1b-a62d-8fcab45d9731"
      unitRef="U_USD">6000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
