<?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_edea1b79-ff55-49de-a690-f0b3cd3d4f95">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-12-02</startDate>
            <endDate>2026-12-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_edea1b79-ff55-49de-a690-f0b3cd3d4f95"
      id="F_7fff0a22-5ce7-4330-a0b4-d865a61f0289">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_edea1b79-ff55-49de-a690-f0b3cd3d4f95"
      id="F_54d22b8a-5b4b-49f4-9687-1aa0500dac4c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_edea1b79-ff55-49de-a690-f0b3cd3d4f95"
      id="F_a24c864f-dc3c-4a00-93db-3f7a2fdea9b9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_edea1b79-ff55-49de-a690-f0b3cd3d4f95"
      id="F_8b82b38c-c26a-4f9c-ae23-92c253c904f1">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_edea1b79-ff55-49de-a690-f0b3cd3d4f95"
      id="F_493c5b73-f24f-4f93-95e2-ac6de388a34b">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_edea1b79-ff55-49de-a690-f0b3cd3d4f95"
      id="F_e641e4f4-47b9-47eb-8329-5fce702b7f24">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_edea1b79-ff55-49de-a690-f0b3cd3d4f95"
      id="F_76947de6-73af-4d39-84a5-1f88c6e6f443">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_edea1b79-ff55-49de-a690-f0b3cd3d4f95"
      id="F_3b1da3ee-730e-4b5f-9e80-e43fd93aae37">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_edea1b79-ff55-49de-a690-f0b3cd3d4f95"
      id="F_202c3c94-9e93-4d24-8bd5-9c4657a4b7a4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_edea1b79-ff55-49de-a690-f0b3cd3d4f95"
      id="F_91f8bbb0-1783-40a7-8693-2171ad66042a">&lt;p style="tab-size:26.66px;font-size:12pt;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,410,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_edea1b79-ff55-49de-a690-f0b3cd3d4f95"
      decimals="-3"
      id="F_2e81fc81-eb83-4b5f-8bd1-5937455e7883"
      unitRef="U_USD">1410000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
