<?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_d8819742-a8b0-4c89-9f60-b8ea9e81c607">
        <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:SubmissnTp
      contextRef="C_d8819742-a8b0-4c89-9f60-b8ea9e81c607"
      id="F_af674c43-14d4-4f44-a84d-110a3c0b0cf1">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d8819742-a8b0-4c89-9f60-b8ea9e81c607"
      id="F_7a76a905-e6ff-484a-8b1a-85491bb27ce2">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d8819742-a8b0-4c89-9f60-b8ea9e81c607"
      id="F_1d43d737-712a-4821-9371-41dc553b4ee7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d8819742-a8b0-4c89-9f60-b8ea9e81c607"
      id="F_93a055e8-2946-49db-8ca3-a99b79de40f8">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d8819742-a8b0-4c89-9f60-b8ea9e81c607"
      id="F_2f5c2399-da22-4ce1-afa8-4b3c682940bb">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_d8819742-a8b0-4c89-9f60-b8ea9e81c607"
      id="F_9a7a030e-1946-4024-a8a7-de5aa3a72d7a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_d8819742-a8b0-4c89-9f60-b8ea9e81c607"
      id="F_b822bf38-d46b-4c0e-9809-fa4f4e67db44">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_d8819742-a8b0-4c89-9f60-b8ea9e81c607"
      id="F_7b91456f-2700-42ad-8bf1-a2a409677d5b">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d8819742-a8b0-4c89-9f60-b8ea9e81c607"
      id="F_adbcc94a-1252-4a46-b667-7cb0446cb777">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d8819742-a8b0-4c89-9f60-b8ea9e81c607"
      id="F_54d09fac-5df9-4eea-8b9c-ae9b8136baf3">&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;2,263,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_d8819742-a8b0-4c89-9f60-b8ea9e81c607"
      decimals="-3"
      id="F_9dc1c693-4b06-4043-adcc-df48976f1fd9"
      unitRef="U_USD">2263000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
