<?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_0b376ee0-22d4-44c2-b3fc-ed3828a274b2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0b376ee0-22d4-44c2-b3fc-ed3828a274b2"
      id="F_bd1d8643-5df9-4634-a9c1-33a51d8ffcf0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0b376ee0-22d4-44c2-b3fc-ed3828a274b2"
      id="F_8f965036-d909-4878-8ba3-fef1f761c845">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_0b376ee0-22d4-44c2-b3fc-ed3828a274b2"
      id="F_182a72df-bfa0-49f1-a883-9f7800b3ee3c">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_0b376ee0-22d4-44c2-b3fc-ed3828a274b2"
      id="F_8198556c-b2d0-4591-8979-76947ead2552">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0b376ee0-22d4-44c2-b3fc-ed3828a274b2"
      id="F_0d31b81f-b3d9-4ef1-b064-54f750bba66c">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0b376ee0-22d4-44c2-b3fc-ed3828a274b2"
      id="F_fc8b2d1f-7e82-4d88-91c0-841a4bed54d9">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0b376ee0-22d4-44c2-b3fc-ed3828a274b2"
      id="F_0d56170c-8a3f-45e5-8a20-cd3fcc902016">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_0b376ee0-22d4-44c2-b3fc-ed3828a274b2"
      id="F_3848bde4-c479-4a4a-a2d6-19ae6eb2ea7d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_0b376ee0-22d4-44c2-b3fc-ed3828a274b2"
      id="F_c7aaf6df-2662-4ae3-88a1-98cb1c0f4887">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0b376ee0-22d4-44c2-b3fc-ed3828a274b2"
      id="F_d5fcc92d-b13f-45d0-a938-81d00549777f">&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,790,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_0b376ee0-22d4-44c2-b3fc-ed3828a274b2"
      decimals="-3"
      id="F_d033726f-a9f5-4060-942a-bb1d42cb845d"
      unitRef="U_USD">1790000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
