<?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_091d696b-51e0-4ab3-a7ed-2078c0e71539">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-28</startDate>
            <endDate>2026-04-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_091d696b-51e0-4ab3-a7ed-2078c0e71539"
      id="F_b952e1e2-7675-4a24-86c6-7f5a726e0b9a">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_091d696b-51e0-4ab3-a7ed-2078c0e71539"
      id="F_6757171c-8fe8-435c-afc3-1b953e007f7b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_091d696b-51e0-4ab3-a7ed-2078c0e71539"
      id="F_67f02e56-b059-4aa1-8530-28536f28a246">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_091d696b-51e0-4ab3-a7ed-2078c0e71539"
      id="F_3c44763e-66a1-44bc-94e5-edf23c7075cb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_091d696b-51e0-4ab3-a7ed-2078c0e71539"
      id="F_e923e82e-dcc0-46d0-bbfb-5e17ad7edbcb">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_091d696b-51e0-4ab3-a7ed-2078c0e71539"
      id="F_5efc9c01-380a-401b-8372-c94e13a1d5fe">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_091d696b-51e0-4ab3-a7ed-2078c0e71539"
      id="F_34f21ec3-b629-49fe-92fa-947a889b40ed">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_091d696b-51e0-4ab3-a7ed-2078c0e71539"
      id="F_4e268664-7eb4-4999-97a8-4b8dfc353277">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_091d696b-51e0-4ab3-a7ed-2078c0e71539"
      id="F_e0984a71-2991-4ca5-9782-c8707db7dd12">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_091d696b-51e0-4ab3-a7ed-2078c0e71539"
      id="F_7af64ab4-1a46-428b-b507-9704db8c6a83">&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;550,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_091d696b-51e0-4ab3-a7ed-2078c0e71539"
      decimals="0"
      id="F_17181181-64be-41eb-aec9-7bc5cc59e1c5"
      unitRef="U_USD">550000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
