<?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_93b67673-a4d7-475e-b2b2-160ba6df83c5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_93b67673-a4d7-475e-b2b2-160ba6df83c5"
      id="F_db2c4ef3-46ca-454c-9f64-1dda9c30f7ca">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_93b67673-a4d7-475e-b2b2-160ba6df83c5"
      id="F_279c5ab5-6305-45a0-823b-a388ec40628a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_93b67673-a4d7-475e-b2b2-160ba6df83c5"
      id="F_11188849-b950-4ad9-9e5b-06f7a484a993">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_93b67673-a4d7-475e-b2b2-160ba6df83c5"
      id="F_3a836e32-a99c-42c3-b0a4-368cfcbc7fd1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_93b67673-a4d7-475e-b2b2-160ba6df83c5"
      id="F_7038b72b-14b1-48f6-85f3-dbae7c42b5a3">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_93b67673-a4d7-475e-b2b2-160ba6df83c5"
      id="F_b504b338-194e-45f8-a899-da8ebfb25d8a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_93b67673-a4d7-475e-b2b2-160ba6df83c5"
      id="F_fecc6b82-87e0-48b8-8fbb-2f7951b4979b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_93b67673-a4d7-475e-b2b2-160ba6df83c5"
      id="F_4bb21c86-6195-4393-a619-c4c96e67ae54">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_93b67673-a4d7-475e-b2b2-160ba6df83c5"
      id="F_f50bbfb4-fdbc-4b67-8935-d00f6ddf5b91">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_93b67673-a4d7-475e-b2b2-160ba6df83c5"
      id="F_31dd8b7a-b6af-4cab-9e8a-16b71d0026a0">&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;844,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_93b67673-a4d7-475e-b2b2-160ba6df83c5"
      decimals="-3"
      id="F_e55125a7-c526-41a6-9c89-be7f22388d2d"
      unitRef="U_USD">844000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
