<?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_48742577-23bb-45d6-8bf9-d29b0eaf9cca">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_48742577-23bb-45d6-8bf9-d29b0eaf9cca"
      id="F_b190b58b-a7c7-46e9-be0f-2ca247017b5c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_48742577-23bb-45d6-8bf9-d29b0eaf9cca"
      id="F_03035dd4-224b-4625-95d3-4c6a089ff49a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_48742577-23bb-45d6-8bf9-d29b0eaf9cca"
      id="F_559b4d68-5cb1-40a7-b8d0-f10fec0aa7b3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_48742577-23bb-45d6-8bf9-d29b0eaf9cca"
      id="F_144f5485-d0d1-43b3-bacc-eaf2a14a44a8">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_48742577-23bb-45d6-8bf9-d29b0eaf9cca"
      id="F_c3bc3382-5331-45d8-9abe-d5d5f41a8996">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_48742577-23bb-45d6-8bf9-d29b0eaf9cca"
      id="F_28bd608c-9744-49ee-b046-6c0869ffc5f9">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_48742577-23bb-45d6-8bf9-d29b0eaf9cca"
      id="F_5a0e33ff-9109-47a1-85f8-f88a363364e0">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_48742577-23bb-45d6-8bf9-d29b0eaf9cca"
      id="F_df852962-3b57-46c6-8dfa-2b7cfe51bae6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_48742577-23bb-45d6-8bf9-d29b0eaf9cca"
      id="F_fc053c59-bc6c-49d2-b1b2-8cdb0c59de2f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_48742577-23bb-45d6-8bf9-d29b0eaf9cca"
      id="F_c8a948f7-b81f-4d48-8c48-0301b0743cfa">&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;1,636,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_48742577-23bb-45d6-8bf9-d29b0eaf9cca"
      decimals="-3"
      id="F_7c55fbe7-10b2-4d61-9d2a-6c7765fb4e54"
      unitRef="U_USD">1636000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
