<?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_3a6e4520-be6e-4174-882a-364717f4bdc8">
        <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:OffsetTableNa
      contextRef="C_3a6e4520-be6e-4174-882a-364717f4bdc8"
      id="F_35046c51-488a-4512-aab2-a28d8690ee9c">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3a6e4520-be6e-4174-882a-364717f4bdc8"
      id="F_1c0a642e-086f-4bb8-af95-188f1d2a8518">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3a6e4520-be6e-4174-882a-364717f4bdc8"
      id="F_39076d48-f1db-4e30-b757-4c92e29d98e0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3a6e4520-be6e-4174-882a-364717f4bdc8"
      id="F_e804f0eb-50eb-4b30-b839-fd329a23e717">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_3a6e4520-be6e-4174-882a-364717f4bdc8"
      id="F_0d4aa0b0-f1bf-4a5d-9c49-5f25a5220739">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3a6e4520-be6e-4174-882a-364717f4bdc8"
      id="F_4e679167-9f16-4cc8-99b3-15efcf175863">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_3a6e4520-be6e-4174-882a-364717f4bdc8"
      id="F_d18806e6-25f0-4bda-8636-5cc2e1fca8d1">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_3a6e4520-be6e-4174-882a-364717f4bdc8"
      id="F_56b8cfcf-55f8-41ea-93f0-f3f3ab223b0a">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_3a6e4520-be6e-4174-882a-364717f4bdc8"
      id="F_958505fe-bba8-4be1-8dc4-9d7a370ce128">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_3a6e4520-be6e-4174-882a-364717f4bdc8"
      id="F_294e3346-591b-4801-a271-77e2da1e4931">&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;6,080,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_3a6e4520-be6e-4174-882a-364717f4bdc8"
      decimals="-3"
      id="F_4a39b1ac-556e-417f-976a-dd39d60356cf"
      unitRef="U_USD">6080000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
