<?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_cf70e252-69b0-4392-9298-4ea29647dd3b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_cf70e252-69b0-4392-9298-4ea29647dd3b"
      id="F_1ccfc2e9-1b63-4562-b20b-4ce6fcc8ce56">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_cf70e252-69b0-4392-9298-4ea29647dd3b"
      id="F_be8b88f1-be86-4908-83fa-df3bf69b61f0">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_cf70e252-69b0-4392-9298-4ea29647dd3b"
      id="F_d0e90549-16ce-4fd6-92c4-3be7490b6312">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_cf70e252-69b0-4392-9298-4ea29647dd3b"
      id="F_254dcba0-a4b9-48ed-8af8-743350101b10">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cf70e252-69b0-4392-9298-4ea29647dd3b"
      id="F_3539cf87-05aa-4f3a-8162-9b66e9628b48">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_cf70e252-69b0-4392-9298-4ea29647dd3b"
      id="F_db011910-aece-4dc0-b26b-d147a27fa617">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_cf70e252-69b0-4392-9298-4ea29647dd3b"
      id="F_7c33883f-bb96-4d94-91be-ee9d21fd84f8">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cf70e252-69b0-4392-9298-4ea29647dd3b"
      id="F_acbc0f00-e281-4907-8f8f-40b764066abe">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_cf70e252-69b0-4392-9298-4ea29647dd3b"
      id="F_e5b1e2fa-4812-4bd0-8170-ee6ea04b44fb">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_cf70e252-69b0-4392-9298-4ea29647dd3b"
      id="F_4e30ac55-db49-4307-8c81-b550e8091577">&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;981,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_cf70e252-69b0-4392-9298-4ea29647dd3b"
      decimals="-3"
      id="F_32aab896-11fd-4d8d-8677-af7b226f54c8"
      unitRef="U_USD">981000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
