<?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_b1ea7ce0-29d1-45a5-9316-f4c90da1f505">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_b1ea7ce0-29d1-45a5-9316-f4c90da1f505"
      id="F_65bedcb2-dba1-4473-b330-839bc64323b2">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_b1ea7ce0-29d1-45a5-9316-f4c90da1f505"
      id="F_a805cce8-a4f8-43d4-a7c2-b9af9d299659">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b1ea7ce0-29d1-45a5-9316-f4c90da1f505"
      id="F_9a20e3e7-99c9-45d1-85dc-5eebe3cd2b18">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b1ea7ce0-29d1-45a5-9316-f4c90da1f505"
      id="F_4816c63f-fe1f-4c6a-8e7a-97daa0ae9a00">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_b1ea7ce0-29d1-45a5-9316-f4c90da1f505"
      id="F_734d70c3-a35d-433d-8a6d-44a0076ed436">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b1ea7ce0-29d1-45a5-9316-f4c90da1f505"
      id="F_3e89e3f5-b035-4e22-ab89-c6b93e13b361">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b1ea7ce0-29d1-45a5-9316-f4c90da1f505"
      id="F_59faa8d6-19fa-43c0-8a8e-98ca3c7636b1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b1ea7ce0-29d1-45a5-9316-f4c90da1f505"
      id="F_665324a3-3b51-4122-a6c8-1d6270911d67">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b1ea7ce0-29d1-45a5-9316-f4c90da1f505"
      id="F_94145008-64b6-44f4-8c20-2ec77c6c9c28">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b1ea7ce0-29d1-45a5-9316-f4c90da1f505"
      id="F_6f0d76ee-2d90-4f59-a1ba-899d6b81beac">&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;14,676,270&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_b1ea7ce0-29d1-45a5-9316-f4c90da1f505"
      decimals="0"
      id="F_49e56d1c-0f25-4c35-a5b5-e24ba575a42c"
      unitRef="U_USD">14676270</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
