<?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_eddc6fdf-77bf-45fe-8ae2-3569b175fbbc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_eddc6fdf-77bf-45fe-8ae2-3569b175fbbc"
      id="F_dcda5705-3632-4b86-9d7f-ee2ba6a23a90">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_eddc6fdf-77bf-45fe-8ae2-3569b175fbbc"
      id="F_a07a7107-f5f0-440c-9444-0cb7395d1358">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_eddc6fdf-77bf-45fe-8ae2-3569b175fbbc"
      id="F_e2e72c38-3076-46bb-97ef-ba56432911f6">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_eddc6fdf-77bf-45fe-8ae2-3569b175fbbc"
      id="F_db843adc-adba-43b6-9ded-7c080ceef52b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eddc6fdf-77bf-45fe-8ae2-3569b175fbbc"
      id="F_e5a5a806-2a80-438f-8a22-a878c8f0beb3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_eddc6fdf-77bf-45fe-8ae2-3569b175fbbc"
      id="F_35800f5f-5aa6-4ab4-b207-3a6b1292159f">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_eddc6fdf-77bf-45fe-8ae2-3569b175fbbc"
      id="F_c4865180-4ea4-4fe9-8a58-f98cc203faab">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_eddc6fdf-77bf-45fe-8ae2-3569b175fbbc"
      id="F_3313c5df-c7e7-4d7f-8bde-17feb2aa43a5">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_eddc6fdf-77bf-45fe-8ae2-3569b175fbbc"
      id="F_82193e04-abcc-411f-9d21-ce0de6715962">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_eddc6fdf-77bf-45fe-8ae2-3569b175fbbc"
      id="F_e486573e-d5e7-4d50-ac7c-a12089fe21cd">&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,853,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_eddc6fdf-77bf-45fe-8ae2-3569b175fbbc"
      decimals="-3"
      id="F_b7061756-eb3f-471a-9a20-f0c10e735cd4"
      unitRef="U_USD">1853000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
