<?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_114190f6-fa3f-4d62-8a1e-85cc84be9040">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_114190f6-fa3f-4d62-8a1e-85cc84be9040"
      id="F_85b2d3e7-8edb-4e0a-98e4-a870d4f52cfe">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_114190f6-fa3f-4d62-8a1e-85cc84be9040"
      id="F_a9141ecd-bf27-40cb-aa5d-b4dd2de9f043">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_114190f6-fa3f-4d62-8a1e-85cc84be9040"
      id="F_1929b2ae-7285-47df-8361-daae5fea6762">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_114190f6-fa3f-4d62-8a1e-85cc84be9040"
      id="F_f66206c9-99da-464c-823b-7b050883ba15">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_114190f6-fa3f-4d62-8a1e-85cc84be9040"
      id="F_4db6a590-17af-4f9e-b911-cf18f4dcd0b5">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_114190f6-fa3f-4d62-8a1e-85cc84be9040"
      id="F_3494df80-7cfb-4e31-bd9b-181db6388450">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_114190f6-fa3f-4d62-8a1e-85cc84be9040"
      id="F_889aeabb-3168-44d0-a980-b7cc41bad983">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_114190f6-fa3f-4d62-8a1e-85cc84be9040"
      id="F_4117d465-a4f0-4d93-8d0b-200bc984506b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_114190f6-fa3f-4d62-8a1e-85cc84be9040"
      id="F_62d933c7-0a91-42b4-bda9-5690e8da1498">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_114190f6-fa3f-4d62-8a1e-85cc84be9040"
      id="F_22a1bbc1-2335-4bf9-83b9-7303801afbdc">&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;3,500,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_114190f6-fa3f-4d62-8a1e-85cc84be9040"
      decimals="0"
      id="F_62ee8656-e632-415a-83c5-3715513f19ad"
      unitRef="U_USD">3500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
