<?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_c51fbc00-152f-4f17-bf09-9c42ee7f0027">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_c51fbc00-152f-4f17-bf09-9c42ee7f0027"
      id="F_cdd60391-563c-4fb1-b0bb-9c0e723c6b50">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c51fbc00-152f-4f17-bf09-9c42ee7f0027"
      id="F_2ff13468-c65e-4ae4-80b2-2a8b77b77532">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_c51fbc00-152f-4f17-bf09-9c42ee7f0027"
      id="F_0edfdb0f-a665-4829-a644-8ab1044dea04">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_c51fbc00-152f-4f17-bf09-9c42ee7f0027"
      id="F_268a09a6-8bd3-4bbb-a9b4-f13eaabe7418">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c51fbc00-152f-4f17-bf09-9c42ee7f0027"
      id="F_bb037708-1b8f-46fd-852a-90965130a8ea">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c51fbc00-152f-4f17-bf09-9c42ee7f0027"
      id="F_d4e88237-815b-4b7a-828a-7a911d4b34e1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c51fbc00-152f-4f17-bf09-9c42ee7f0027"
      id="F_30bcce88-f8ff-43db-810f-58ba1cbcc6be">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_c51fbc00-152f-4f17-bf09-9c42ee7f0027"
      id="F_228b2b00-d338-4508-bc49-50a1527307d2">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_c51fbc00-152f-4f17-bf09-9c42ee7f0027"
      id="F_76bb0c9f-9007-4854-bcc9-6d3b9f5d4584">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_c51fbc00-152f-4f17-bf09-9c42ee7f0027"
      id="F_43eb62f8-e451-42c2-88e7-cfb61f7dd573">&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;3,450,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_c51fbc00-152f-4f17-bf09-9c42ee7f0027"
      decimals="-3"
      id="F_6e779fbc-8521-47e3-814d-e67697883844"
      unitRef="U_USD">3450000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
