<?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_3ccf4551-7a40-4ae0-8e42-83f8d6f6e5f4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-24</startDate>
            <endDate>2026-06-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_3ccf4551-7a40-4ae0-8e42-83f8d6f6e5f4"
      id="F_6464b142-9d29-4a3c-80e8-6586c32a31d0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_3ccf4551-7a40-4ae0-8e42-83f8d6f6e5f4"
      id="F_ac6b6bfa-e75c-49d0-800f-e733fa07504a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3ccf4551-7a40-4ae0-8e42-83f8d6f6e5f4"
      id="F_a2244443-a105-47ec-bdae-1828c187982c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3ccf4551-7a40-4ae0-8e42-83f8d6f6e5f4"
      id="F_083049e3-39da-4a15-9e14-45031abcafa9">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3ccf4551-7a40-4ae0-8e42-83f8d6f6e5f4"
      id="F_96d34c30-02c6-4169-8772-a25b6493309d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_3ccf4551-7a40-4ae0-8e42-83f8d6f6e5f4"
      id="F_f02482d7-65a1-4f35-a282-f534e7911f79">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_3ccf4551-7a40-4ae0-8e42-83f8d6f6e5f4"
      id="F_23abe58b-75c4-4e67-b738-227847f1bbd9">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_3ccf4551-7a40-4ae0-8e42-83f8d6f6e5f4"
      id="F_f7396e71-51e8-4ebb-858e-381f36132954">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3ccf4551-7a40-4ae0-8e42-83f8d6f6e5f4"
      id="F_4a96dbc1-2f89-4c88-9156-68d7babbbf23">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3ccf4551-7a40-4ae0-8e42-83f8d6f6e5f4"
      id="F_13efcf13-c497-4dd8-bd82-b2ea905ba422">&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;7,700,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_3ccf4551-7a40-4ae0-8e42-83f8d6f6e5f4"
      decimals="-3"
      id="F_a0f69393-76e8-4b6a-b5b8-bf1544a79cfa"
      unitRef="U_USD">7700000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
