<?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_d648f0f6-31b4-404b-b87d-d6454388f69f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d648f0f6-31b4-404b-b87d-d6454388f69f"
      id="F_680d2046-3ac3-4fee-a659-72116a04a548">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d648f0f6-31b4-404b-b87d-d6454388f69f"
      id="F_aad5edbe-57f0-4157-9bdc-1f2e761e6bd6">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_d648f0f6-31b4-404b-b87d-d6454388f69f"
      id="F_717d3654-6ab3-4d61-8266-38acfeed1cf6">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_d648f0f6-31b4-404b-b87d-d6454388f69f"
      id="F_b10146bb-5a87-4326-a7e8-5a7df9bbb5b6">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d648f0f6-31b4-404b-b87d-d6454388f69f"
      id="F_bcda6cfe-8549-4ecc-abfe-3d983525cb5c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_d648f0f6-31b4-404b-b87d-d6454388f69f"
      id="F_3e7a43f6-9473-4318-92be-bb9b683a00d5">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d648f0f6-31b4-404b-b87d-d6454388f69f"
      id="F_1d03dd60-8472-45b1-8779-77794209dbd9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_d648f0f6-31b4-404b-b87d-d6454388f69f"
      id="F_5e40d444-b178-4779-9815-551084a15d9d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d648f0f6-31b4-404b-b87d-d6454388f69f"
      id="F_f6afd35b-c7ed-4122-b525-6050509be3c1">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d648f0f6-31b4-404b-b87d-d6454388f69f"
      id="F_70278e2b-8c10-4ad6-8c32-e7b833a117fb">&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;510,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_d648f0f6-31b4-404b-b87d-d6454388f69f"
      decimals="0"
      id="F_14c4ebc5-611b-437c-b697-111752f4c64d"
      unitRef="U_USD">510000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
